UTILS.
Private by default
⌨

Keyboard Event Tester

See the key, code and keyCode for any key you press, with modifier flags.

Your files stay on this device

Files are processed in your browser, never uploaded. The site downloads code and assets to run the tools. No accounts or trackers.

Use Download to save this tool as one HTML file for offline use.

Privacy →
Click here, then press any key

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.

Frequently asked questions

Why doesn't anything happen?
Click inside the box first so it has focus, then press a key to capture the event.
Are keyCode and which deprecated?
Yes — they are legacy properties; prefer event.key and event.code in new code.

More tools