About this tool
Click the box and press any key to inspect the JavaScript keyboard event — key, code, keyCode, which and modifier states — live in your browser.
The tool listens for keydown on the box only, so click the box first, then press any key. It shows event.key, event.code, the legacy keyCode and which numbers, and yes or no for Ctrl, Alt, Shift and Meta. A modifier pressed alone is reported like any other key.
While the box has focus, any key that is not a single plain character has its default browser action blocked, so arrows, function keys and anything held with Ctrl, Alt or Meta can be inspected without scrolling or triggering a shortcut. Ordinary typing, Tab and Escape are left alone, so the keyboard can always leave the box. Nothing is stored or sent.