About the Keyboard Test
A key that does nothing, types twice or seems stuck is annoying, and it is hard to pin down while typing normally. This free keyboard test shows a full on-screen keyboard. Every key you press lights up while it is held and stays green once it has worked, so dead keys stand out at a glance. It covers the function row, the navigation keys, the arrow keys and the number pad, and tells left and right Shift, Ctrl and Alt apart.
For developers, each press also shows the JavaScript values event.key, event.code and the older keyCode. Everything runs in your browser. Nothing you type is stored or sent anywhere. The page stops keys like Space, Backspace, the arrows and F5 from doing their usual job, so you can test them without the page scrolling or reloading. A few keys, such as Fn and some system shortcuts, are handled by your computer and never reach the browser.
How to use the Keyboard Test
- Click on the keyboard area so the page has focus.
- Press each key you want to check, one at a time.
- Look for keys that stay grey (not detected) or flash without your input (stuck).
- Press “Reset test” to start again, for example after cleaning the keyboard.
What the colours mean
| Key looks | Meaning |
|---|---|
| Grey | Not pressed yet, or the key isn’t detected |
| Dark (filled) | Being held down right now. If it stays dark after you let go, the key may be stuck. |
| Green | Worked at least once |
Common key codes
| Key | event.key | event.code | keyCode |
|---|---|---|---|
| Enter | Enter | Enter | 13 |
| Space | " " | Space | 32 |
| Escape | Escape | Escape | 27 |
| Left arrow | ArrowLeft | ArrowLeft | 37 |
| A | a (A with Shift) | KeyA | 65 |
| 1 (top row) | 1 | Digit1 | 49 |
| Left Shift | Shift | ShiftLeft | 16 |
event.code names the physical key position, so it stays the same on any keyboard layout. event.key is the character the key produces, which changes with the layout and with Shift.
Frequently asked questions
How do I find which keys on my keyboard are not working?
Press every key once, row by row. Keys that turn green work; any key that stays grey after you press it isn’t being detected and may need cleaning or repair.
Why don’t some keys light up, like Fn or Print Screen?
Some keys are handled by your computer or keyboard before the browser sees them. Fn usually never reaches the browser, and Print Screen or media keys may be taken by the system. That doesn’t mean they are broken.
How can I tell if a key is stuck?
A stuck key stays dark after you let go, or keeps repeating without you touching it. Reset the test, take your hands off the keyboard and watch whether any key lights up by itself.
Is what I type recorded?
No. The page only shows the last key you pressed and which keys have worked. Nothing is saved or sent anywhere, and it is all cleared when you reset or leave the page.
Last updated: