Keyboard Tester
Press keys to check that every key on your keyboard registers, see key codes, and spot stuck or dead keys and ghosting. Free online keyboard test that works with any layout.
While on, keys don't scroll the page or trigger browser shortcuts. Turn it off to use Tab and shortcuts normally.
Press any key. A key turns green once it registers and blue while it is held down.
Keys tested
0 / 104
Held now
0
Most held at once
0
Last key
—
Event log
Some keys can't be tested in any browser: Fn is handled inside the keyboard itself, and system shortcuts such as Ctrl+Alt+Del, Alt+Tab, Win+L, Cmd+Tab or Cmd+Space are taken by the operating system before the page sees them. In Chrome and Edge, full-screen mode lets the page receive some keys the browser normally keeps, such as Esc (hold Esc to leave full screen).
Key presses are read in your browser only and are never recorded or sent anywhere. Only your layout and option choices are saved on this device.
Usage examples
Check a new or second-hand keyboard
Press every key once. Each one should turn green; any key that stays white after several presses isn't reaching the computer. The counter shows how many of the keys on the drawn layout you have covered.
Find a stuck or double-typing key
A key that stays blue after you let go is still reported as held. A key that types twice shows up in the chatter warning, which lists keys that registered again within 30 ms of being released.
Test anti-ghosting and key rollover
Hold down as many keys as you can, for example A S D F J K L ;, and watch “Held now”. Gaming keyboards advertised as n-key rollover should keep counting; boards using the basic USB boot report stop at six non-modifier keys.
Look up key codes while coding
Press a key to see its event.key, event.code, legacy keyCode and location. It's a quick way to confirm that left and right Shift report ShiftLeft and ShiftRight, or what a numpad key sends with Num Lock off.
Test an ISO or non-US keyboard
Switch to ISO to get the tall Enter key and the extra key beside left Shift (IntlBackslash). In Chrome and Edge the keycaps are relabeled from your system layout, so an AZERTY or QWERTZ keyboard shows its own letters.
Quick reference
Common keys: event.code, event.key and legacy keyCode (US layout)
| event.code | event.key | keyCode (legacy) |
|---|---|---|
| Enter | Enter | 13 |
| Escape | Escape | 27 |
| Space | " " | 32 |
| Tab | Tab | 9 |
| Backspace | Backspace | 8 |
| Delete | Delete | 46 |
| ShiftLeft | Shift | 16 |
| ControlLeft | Control | 17 |
| AltLeft | Alt | 18 |
| CapsLock | CapsLock | 20 |
| ArrowLeft | ArrowLeft | 37 |
| ArrowUp | ArrowUp | 38 |
| ArrowRight | ArrowRight | 39 |
| ArrowDown | ArrowDown | 40 |
| Home | Home | 36 |
| End | End | 35 |
| PageUp | PageUp | 33 |
| PageDown | PageDown | 34 |
| KeyA | a / A | 65 |
| KeyZ | z / Z | 90 |
| Digit0 | 0 | 48 |
| Digit9 | 9 | 57 |
| Numpad0 | 0 | 96 |
| F1 | F1 | 112 |
| F12 | F12 | 123 |
Frequently asked questions
Why don't some keys light up?
A few keys never reach a web page. Fn is processed inside the keyboard, and the operating system intercepts shortcuts like Ctrl+Alt+Del, Alt+Tab, Win+L and Cmd+Tab. On many laptops and Macs the top row sends brightness or volume by default, so hold Fn to test F1–F12. If an ordinary letter or number key stays white after several presses, the problem is the key or the keyboard, not the browser.
What are ghosting and key rollover?
Keyboards scan keys in a grid. Without a diode on each switch, pressing certain three-key combinations can make a fourth key appear that you didn't press (ghosting), so many keyboards block the extra key instead. Rollover is how many keys can be held and registered at once. Hold several keys together here: if “Held now” stops rising while you press another key, you have reached your keyboard's limit for that combination.
What's the difference between key, code and keyCode?
key is what the key means right now, such as “a”, “A” or “Enter”, and it changes with Shift and the keyboard layout. code identifies the physical key by its US-QWERTY position, so “KeyQ” is the same key on AZERTY even though it types A. keyCode is an older numeric value that is deprecated and differs between browsers for some punctuation, but still appears in a lot of existing code.
A key stays blue after I release it. Is it broken?
Not necessarily. If you switch windows while holding a key, its release can be missed, so this tool clears held keys when the page loses focus. On macOS, other keys don't send a release event while ⌘ is held, so releasing ⌘ clears them too. If a key stays blue with nothing else going on and Auto-repeat shows Yes, the keyboard is still reporting it as pressed, which points to a stuck switch or debris.
What does the chatter warning mean?
It lists keys that registered a new press less than 30 ms after being released. That threshold is this tool's rule of thumb rather than a standard; a human deliberately tapping a key is normally slower. Repeated warnings for the same key usually mean a worn or dirty mechanical switch. Very fast intentional tapping can occasionally trigger it, so retest with single, deliberate presses.
Should I pick ANSI or ISO?
Look at your Enter key and left Shift. ANSI keyboards, common in the US, have a wide single-row Enter and a long left Shift. ISO keyboards, common in the UK and most of Europe, have a tall two-row Enter, a short left Shift with an extra key beside it, and a key left of Enter that reports code “Backslash”. Japanese and Brazilian keyboards have further keys (such as IntlRo or IntlYen); they appear under “Other keys detected”.
Is anything I type recorded, and does it work on phones?
Nothing is recorded or uploaded; key events are only displayed in this page while it is open, and only your layout settings are saved locally. Wired, wireless and Bluetooth keyboards all work. Phone and tablet on-screen keyboards often report key “Unidentified” and keyCode 229 while composing text, so they can't be tested key by key; a physical keyboard connected to the device can.