Skip to main content
kitlocal.dev

JavaScript Keycode Info

Runs locally

100% processed in your browser. Inputs and outputs never leave your device.

Inspect live KeyboardEvent fields (key, code, which, location, IME composing, modifiers), event history, and searchable W3C key reference.

Press any key to inspect its KeyboardEvent

Works with standard keys, modifiers, numpad keys, dead keys, and IME composition.

KeyboardEvent Quick Reference

event.keyevent.codeevent.whichCategory
EnterEnter13Whitespace
SpaceSpace32Whitespace
TabTab9Whitespace
EscapeEscape27Navigation
BackspaceBackspace8Editing
DeleteDelete46Editing
InsertInsert45Editing
ArrowUpArrowUp38Navigation
ArrowDownArrowDown40Navigation
ArrowLeftArrowLeft37Navigation
ArrowRightArrowRight39Navigation
HomeHome36Navigation
EndEnd35Navigation
PageUpPageUp33Navigation
PageDownPageDown34Navigation
ShiftShiftLeft16Modifier
ShiftShiftRight16Modifier
ControlControlLeft17Modifier
AltAltLeft18Modifier
MetaMetaLeft91Modifier
CapsLockCapsLock20Modifier
F1F1112Function
F2F2113Function
F5F5116Function
F11F11122Function
F12F12123Function
/Slash191Punctuation
\Backslash220Punctuation
`Backquote192Punctuation