How to use the Keyboard Tester
- Click the keyboard picture so the tester has focus (the border turns solid).
- Press each key on your keyboard. It lights up while held and stays green once it has been registered.
- Check the Last key pressed panel for the
key,codeandkeyCodevalues — handy for developers and remapping tools. - Hold several keys at once to test ghosting and rollover: every key you hold should appear in the list.
- Press Reset to start again. Click outside the keyboard to return to normal page scrolling.
How to test a keyboard online
This keyboard tester listens for the browser’s keydown and keyup events and matches each one to a key on a full-size ANSI (US) layout using event.code. That property describes the physical position of the key, not the character it types, so it works no matter which language or layout your operating system uses. A key turns blue while it is held and green once it has been registered. When the counter reaches 104 / 104, every key on a full-size keyboard has been confirmed.
Laptops and compact keyboards (75%, TKL, 65%, 60%) simply have fewer keys, so it is normal for the navigation cluster or numpad to stay grey. Keys that are not on the picture, such as media keys, a Fn-layer key or the extra ISO key next to left Shift, appear under “Other keys detected”.
What the key codes mean
| Property | Example (A key) | Meaning |
|---|---|---|
event.key | a or A | The character or action produced, which depends on layout and modifiers. |
event.code | KeyA | The physical key, independent of layout. Best for games and shortcuts. |
keyCode | 65 | A legacy numeric code. Deprecated, but still used by older scripts. |
location | Standard | Distinguishes left/right Shift, Ctrl and Alt, and numpad keys. |
Ghosting and n-key rollover explained
Most keyboards detect presses by scanning a grid (matrix) of rows and columns. When three keys at the corners of a rectangle in that grid are held, a cheap matrix can “see” a fourth key that was never pressed. That phantom press is called ghosting. To prevent it, many keyboards deliberately ignore the extra key instead, which is called blocking or jamming. Either way, some key combinations fail.
Rollover is the number of keys that can be held at once and still all register:
- 2KRO — only two keys reliably, typical of budget office keyboards outside common combos such as Ctrl + Shift.
- 6KRO — six normal keys plus modifiers. This is the limit of the standard USB “boot” keyboard report.
- NKRO (n-key rollover) — every key independently, found on many mechanical and gaming keyboards.
To test it, hold the keys you actually use together, for example W + A + Shift + Space in a game, and watch the “Keys held now” list. If a key you are holding does not appear, that combination is blocked. “Max at once” shows the most keys registered at the same time during this session. Note that some operating systems and browsers have their own limits, and laptop keyboards commonly drop keys in certain clusters.
Keys a browser cannot always see
- Fn is handled inside the keyboard and is never sent to the computer.
- Print Screen on Windows often sends only a key-up event; the tester still counts it.
- Windows/Command combos, Alt + Tab and some F-keys (F11 full screen, media keys) may be taken by the operating system first.
- On macOS, keys pressed while Cmd is held may not send a key-up, so the tester clears held keys when you release Cmd.
While the tester has focus it blocks the browser’s default action for Tab, Space, arrows, Page Up/Down, Home/End, Backspace and F1–F12, so you can press them without scrolling the page or jumping elsewhere. Click outside the keyboard to return to normal behaviour.
Fixing keys that do not register
- Clean under the keycap with compressed air; crumbs and dust are the most common cause of sticky or intermittent keys.
- Test on another computer or port to tell a hardware fault from a driver or software problem.
- Check remapping software (manufacturer utilities, AutoHotkey, Karabiner) that might swallow a key.
- On mechanical keyboards with hot-swap sockets, re-seat or swap the switch; a bent pin often explains a dead key.
- If one key repeats when held once, it may be chattering — a worn switch that reports several presses.
Once every key works, see how fast you can use them with the typing speed test, or test your mouse with the CPS test.
Frequently asked questions
How do I check if all my keyboard keys are working?
What is keyboard ghosting?
How do I test n-key rollover (NKRO)?
Why does the Fn key not light up?
Does this keyboard tester record what I type?
My keyboard uses a different layout. Will it work?
Last reviewed November 2026. Results are estimates for information only — see our disclaimer.