Pues parece normal. Debes ejecutar el programa desde una consola, aparece una ventana negra, pulsas las teclas y las va identificando, algo como así:
Código: Seleccionar todo
KeyPress event, serial 37, synthetic NO, window 0x4000001,
root 0xa8, subw 0x0, time 440249, (-301,42), root:(489,257),
state 0x0, keycode 38 (keysym 0x61, a), same_screen YES,
XLookupString gives 1 bytes: (61) "a"
XmbLookupString gives 1 bytes: (61) "a"
XFilterEvent returns: False
KeyRelease event, serial 37, synthetic NO, window 0x4000001,
root 0xa8, subw 0x0, time 440397, (-301,42), root:(489,257),
state 0x0, keycode 38 (keysym 0x61, a), same_screen YES,
XLookupString gives 1 bytes: (61) "a"
XFilterEvent returns: False
KeyPress event, serial 37, synthetic NO, window 0x4000001,
root 0xa8, subw 0x0, time 440615, (-301,42), root:(489,257),
state 0x0, keycode 56 (keysym 0x62, b), same_screen YES,
XLookupString gives 1 bytes: (62) "b"
XmbLookupString gives 1 bytes: (62) "b"
XFilterEvent returns: False
KeyRelease event, serial 37, synthetic NO, window 0x4000001,
root 0xa8, subw 0x0, time 440779, (-301,42), root:(489,257),
state 0x0, keycode 56 (keysym 0x62, b), same_screen YES,
XLookupString gives 1 bytes: (62) "b"
XFilterEvent returns: False
KeyPress event, serial 37, synthetic NO, window 0x4000001,
root 0xa8, subw 0x0, time 441002, (-301,42), root:(489,257),
state 0x0, keycode 54 (keysym 0x63, c), same_screen YES,
XLookupString gives 1 bytes: (63) "c"
XmbLookupString gives 1 bytes: (63) "c"
XFilterEvent returns: False
KeyRelease event, serial 37, synthetic NO, window 0x4000001,
root 0xa8, subw 0x0, time 441106, (-301,42), root:(489,257),
state 0x0, keycode 54 (keysym 0x63, c), same_screen YES,
XLookupString gives 1 bytes: (63) "c"
XFilterEvent returns: False
KeyPress event, serial 37, synthetic NO, window 0x4000001,
root 0xa8, subw 0x0, time 444613, (-301,42), root:(489,257),
state 0x0, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 37, synthetic NO, window 0x4000001,
root 0xa8, subw 0x0, time 444877, (-301,42), root:(489,257),
state 0x1, keycode 11 (keysym 0x22, quotedbl), same_screen YES,
XLookupString gives 1 bytes: (22) """
XmbLookupString gives 1 bytes: (22) """
XFilterEvent returns: False
KeyRelease event, serial 37, synthetic NO, window 0x4000001,
root 0xa8, subw 0x0, time 445002, (-301,42), root:(489,257),
state 0x1, keycode 11 (keysym 0x22, quotedbl), same_screen YES,
XLookupString gives 1 bytes: (22) """
XFilterEvent returns: False
KeyRelease event, serial 37, synthetic NO, window 0x4000001,
root 0xa8, subw 0x0, time 445138, (-301,42), root:(489,257),
state 0x1, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 37, synthetic NO, window 0x4000001,
root 0xa8, subw 0x0, time 450078, (-301,42), root:(489,257),
state 0x0, keycode 66 (keysym 0xffe5, Caps_Lock), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 37, synthetic NO, window 0x4000001,
root 0xa8, subw 0x0, time 450151, (-301,42), root:(489,257),
state 0x2, keycode 66 (keysym 0xffe5, Caps_Lock), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False