UTILS.
100% in-browser

Keyboard Event Tester

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

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