#!/usr/bin/python

import gtk

w = gtk.Window()

def press(*args):
    print "Press"
def release(*args):
    print "Release"

w.connect('key-press-event', press)
w.connect('key-release-event', release)

w.show()
gtk.main()


