Keycode Inspector

See the key, code and modifiers for any keypress.

Press any key.

Event properties

event.key
event.code
event.keyCode
event.which
event.location
event.repeat
Modifiers

keyCode is deprecated. Use event.key for what the user typed and event.code for the physical key — the difference matters on non-QWERTY layouts.

Recent keys

Nothing yet.