Keyboard Tester

Click the on-screen keyboard to start capturing, then press any key and it lights up. Keys you've pressed stay highlighted so you can spot dead or stuck keys, and holding several at once reveals ghosting and N-key rollover limits. Press Esc when you're done. Keystrokes never leave your browser.

Last key
event.code
keyCode
Held now0
Keys pressed this session: 0

Not capturing — click the keyboard below, or press Tab to move focus into it, to start.

Keys are only captured while this area has focus, so Tab and Space can be tested without locking you out of the page. Press Esc — or click anywhere outside — to hand the keyboard back.

Bright = currently held · Amber = pressed at least once. Some browser and OS shortcuts (like Win/Cmd combos) may be intercepted before they reach this page.

How to use the keyboard tester

Click the on-screen keyboard — or press Tab until it is outlined — to start capturing, then press keys. Each key you press turns bright while it's held and stays amber after you release it, building up a picture of every key that registered. To check a suspicious key, press it and watch for the highlight — if a physical key press produces no reaction on screen, that key (or its switch) is likely dead. The last key panel shows the character, the physical event.code, and the legacy keyCode, which is handy for debugging remaps and unusual layouts.

Capture is deliberately scoped to that one area. While it holds focus the page swallows the keys it receives, which is what lets you test Tab, Space, Enter and the arrow keys — normally those scroll the page or move focus somewhere else before you can see them. Press Esc to hand the keyboard back: the Escape key is still reported first, so you can confirm it works and still get out with it. Clicking anywhere outside the keyboard releases it too, and combinations held with Ctrl, Cmd or Alt are never intercepted, so your browser's own shortcuts keep working throughout.

To hunt for a stuck key, press Reset highlights and then don't touch the keyboard: if any key lights up on its own, or a key stays lit after you let go, that switch is sticking. To test ghosting and N-key rollover, hold several keys down at once and watch the held now counter — on a basic membrane keyboard some combinations simply won't register beyond two or three simultaneous keys, while a good gaming keyboard will happily show six or more. That behaviour is explained in depth in our article below.

This tool reads standard keyboard events locally and stores nothing. A handful of combinations reserved by your operating system or browser (for example the Windows or Command key, or function-key media controls) may never reach the page, so their absence here isn't necessarily a fault.

Curious why some key combos don't work? Read keyboard ghosting and N-key rollover explained, or run the mouse test next.