Here is what I could get: FocusIn event, serial 40, synthetic NO, window 0x3c00001, mode NotifyUngrab, detail NotifyAncestor
KeymapNotify event, serial 40, synthetic NO, window 0x0, keys: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 KeyPress event, serial 40, synthetic NO, window 0x3c00001, root 0xe4, subw 0x0, time 224489, (59,-14), root:(1109,269), state 0x10, keycode 108 (keysym 0xffea, Alt_R), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False MappingNotify event, serial 40, synthetic NO, window 0x0, request MappingKeyboard, first_keycode 8, count 248 FocusOut event, serial 40, synthetic NO, window 0x3c00001, mode NotifyGrab, detail NotifyAncestor FocusIn event, serial 40, synthetic NO, window 0x3c00001, mode NotifyUngrab, detail NotifyAncestor KeymapNotify event, serial 40, synthetic NO, window 0x0, keys: 91 0 0 0 0 0 0 0 0 0 0 0 0 16 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 MappingNotify event, serial 41, synthetic NO, window 0x0, request MappingKeyboard, first_keycode 8, count 248 KeyRelease event, serial 41, synthetic NO, window 0x3c00001, root 0xe4, subw 0x0, time 225264, (59,-14), root:(1109,269), state 0x18, keycode 108 (keysym 0xffea, Alt_R), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False FocusOut event, serial 42, synthetic NO, window 0x3c00001, mode NotifyNormal, detail NotifyNonlinear FocusIn event, serial 42, synthetic NO, window 0x3c00001, mode NotifyNormal, detail NotifyNonlinear