Keyboard Tester
Press any key and instantly see whether it registers — including its JavaScript key, code and keyCode values, currently held keys, and a history.
Press any key to test it…
—
Try next
Your files are processed locally in your browser. They are not uploaded to our servers.
How to use
- Click anywhere on the page so it has keyboard focus.
- Press the keys you want to test — each press appears instantly.
- Check the held-keys row to test key combinations and rollover.
What is this tool?
Keyboard Tester registers every keystroke and shows the exact values your browser reports: event.key (the character), event.code (the physical key) and the legacy keyCode. It also lists all currently held keys — useful for testing modifier combinations and how many simultaneous keys your keyboard supports — plus a history of recent presses. Handy for checking a new keyboard, finding a dead key, or looking up key codes while programming.
Common uses
- Testing a new or second-hand keyboard for dead keys
- Looking up JavaScript key codes while writing keyboard shortcuts
- Checking how many keys register simultaneously (rollover)
- Diagnosing a key that behaves oddly in games or apps
FAQ
Some shortcuts don't register — why?
The operating system and browser reserve certain combinations (like Cmd+Q or Ctrl+W) and handle them before the page ever sees them. That's a platform limit, not a broken key.
What's the difference between key and code?
event.key is the character produced (respecting your layout), while event.code identifies the physical key position, regardless of layout.
Why do only a few keys register at once?
Many keyboards support a limited number of simultaneous keys (rollover), especially cheaper ones. Gaming keyboards usually support more.
Are my keystrokes logged or sent anywhere?
No, the events are only displayed in your browser and vanish when you leave the page.