This is what I see in xev when toggling then NumLock key on and then off:
[Toggle ON] KeyPress event, serial 33, synthetic NO, window 0x4000001, root 0x7b, subw 0x0, time 67170208, (104,59), root:(175,141), state 0x0, keycode 77 (keysym 0xff7f, Num_Lock), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False
PropertyNotify event, serial 33, synthetic NO, window 0x4000001, atom 0x1ac (XKLAVIER_STATE), time 67170212, state PropertyNewValue
KeyRelease event, serial 33, synthetic NO, window 0x4000001, root 0x7b, subw 0x0, time 67170289, (104,59), root:(175,141), state 0x10, keycode 77 (keysym 0xff7f, Num_Lock), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False
[Toggle OFF] KeyPress event, serial 33, synthetic NO, window 0x4000001, root 0x7b, subw 0x0, time 67179879, (104,59), root:(175,141), state 0x10, keycode 77 (keysym 0xff7f, Num_Lock), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False
PropertyNotify event, serial 33, synthetic NO, window 0x4000001, atom 0x1ac (XKLAVIER_STATE), time 67179882, state PropertyNewValue
KeyRelease event, serial 33, synthetic NO, window 0x4000001, root 0x7b, subw 0x0, time 67179975, (104,59), root:(175,141), state 0x10, keycode 77 (keysym 0xff7f, Num_Lock), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False
This is what I see in xev when toggling then NumLock key on and then off:
[Toggle ON]
KeyPress event, serial 33, synthetic NO, window 0x4000001,
root 0x7b, subw 0x0, time 67170208, (104,59), root:(175,141),
state 0x0, keycode 77 (keysym 0xff7f, Num_Lock), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
PropertyNotify event, serial 33, synthetic NO, window 0x4000001,
atom 0x1ac (XKLAVIER_STATE), time 67170212, state PropertyNewValue
KeyRelease event, serial 33, synthetic NO, window 0x4000001,
root 0x7b, subw 0x0, time 67170289, (104,59), root:(175,141),
state 0x10, keycode 77 (keysym 0xff7f, Num_Lock), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
[Toggle OFF]
KeyPress event, serial 33, synthetic NO, window 0x4000001,
root 0x7b, subw 0x0, time 67179879, (104,59), root:(175,141),
state 0x10, keycode 77 (keysym 0xff7f, Num_Lock), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
PropertyNotify event, serial 33, synthetic NO, window 0x4000001,
atom 0x1ac (XKLAVIER_STATE), time 67179882, state PropertyNewValue
KeyRelease event, serial 33, synthetic NO, window 0x4000001,
root 0x7b, subw 0x0, time 67179975, (104,59), root:(175,141),
state 0x10, keycode 77 (keysym 0xff7f, Num_Lock), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False