Keyboard Test

Press each key and watch it light up to find dead, stuck or double-typing keys. Key codes are shown too.

Runs in your browser — nothing is uploaded

Click here first, then press any key. Keys turn dark while held and green once they have worked.

—event.key
—event.code
—keyCode (legacy)
0Keys tested

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

  1. Click on the keyboard area so the page has focus.
  2. Press each key you want to check, one at a time.
  3. Look for keys that stay grey (not detected) or flash without your input (stuck).
  4. Press “Reset test” to start again, for example after cleaning the keyboard.

What the colours mean

Key looksMeaning
GreyNot 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.
GreenWorked at least once

Common key codes

Keyevent.keyevent.codekeyCode
EnterEnterEnter13
Space" "Space32
EscapeEscapeEscape27
Left arrowArrowLeftArrowLeft37
Aa (A with Shift)KeyA65
1 (top row)1Digit149
Left ShiftShiftShiftLeft16

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: