Keyboard tester

Press each key and watch it light up on the on-screen keyboard. Keys you have tested stay green, so a dead key stands out.

Runs in your browser. Nothing is uploaded.

Click the keyboard below, then press any key.
key
–
code
–
Location
–
Repeat
–
keyCode
–
Keys tested
0
Held now
0
Max held
0
EscF1F2F3F4F5F6F7F8F9F10F11F12` ~1 !2 @3 #4 $5 %6 ^7 &8 *9 (0 )- _= +Backspace⌫TabQWERTYUIOP[ {] }\ |Caps LockCapsASDFGHJKL; :' "Enter↵ShiftZXCVBNM, <. >/ ?ShiftCtrlWinAltSpaceAltWinMenuCtrl
PrtScScrLkPausePausInsHomePgUpDelEndPgDn↑←↓→
Num/*−789+456123Enter↵0.

Yellow = held down now. Green = pressed at least once. While the keyboard has focus, Tab, Space, arrows and F-keys are caught here; press Esc to leave.

How to use it

  1. The tester is ready as soon as the page loads. If it says Paused, click the on-screen keyboard. Choose US (ANSI) or UK (ISO) to match your keyboard.
  2. Press every key in turn. A key turns yellow while you hold it and stays green once it has worked.
  3. A key that stays gray after you press it is not reaching the computer. The code box shows which physical key the browser actually saw.
  4. To check ghosting, hold several keys together and watch Held now. If a key will not light up while the others are held, the keyboard has reached its limit.
  5. Press Esc to stop testing and use the page normally. Reset clears every key.

What the readout means

  • key is the character or action the key produced. It changes with Shift, Caps Lock and your language settings, so Shift+2 gives @ on a US layout and " on a UK one.
  • code names the physical position, using the US layout for the names. The key right of Tab is always KeyQ, even on a French AZERTY keyboard where it prints A.
  • Location tells apart keys that appear twice: 1 is the left Shift, Ctrl or Alt, 2 the right one, and 3 the number pad.
  • Repeat says Yes when you hold a key long enough for auto-repeat to start, usually after about half a second.
  • keyCode is the old numeric code that some games and older software still use.

Ghosting and rollover

Most keyboards wire their keys in a grid. Press three keys at the corners of a rectangle on that grid and a cheap keyboard either invents a fourth key (ghosting) or ignores one of yours (blocking). Office keyboards are often only guaranteed to read two keys at once plus Shift, Ctrl and Alt. Gaming keyboards usually manage six keys over the standard USB mode, or every key at once ("n-key rollover").

Try the combinations you actually use: W, A and Shift with Space for games, or Ctrl, Shift and an arrow key for editing. Most at once records the highest number the browser saw together.

Keys a browser cannot test

Fn never reaches the computer: the keyboard handles it and sends a different key instead, such as volume up. Those keys appear under Other keys. The Windows key combinations, Alt+Tab and Ctrl+Alt+Delete are taken by the operating system, and Ctrl+W, Ctrl+T and Ctrl+N close or open tabs before any page can stop them, so avoid those. On Windows, Print Screen is only reported when you let go of it, so it turns green without the yellow.

Questions

Why does a key light up in a different place from the one I pressed?
Your keyboard probably has a different layout from the one shown. Switch between US and UK at the top. On other layouts, such as German or French, the tester shows the physical position, so the key labeled Z on a German keyboard lights up where Y is on a US one. That is correct.
A key does not light up at all. Is it broken?
Try it in a text editor too. If it does nothing anywhere, the key or its switch is faulty, or dirt is stopping it. Remove the keycap if you can and clean underneath. On a laptop, check that Num Lock or an Fn lock has not changed what the key sends. On a wireless keyboard, try fresh batteries first.
Why does the held-keys count reset on a Mac?
While Cmd is held, macOS does not tell the browser when other keys are released. To avoid showing keys as stuck, the tester clears the held list when you let go of Cmd.
Is anything I type recorded or sent?
No. The page only shows which keys you press. Nothing is stored or sent anywhere, and the readout is cleared when you leave or press Reset.
Can I test a phone or tablet keyboard?
Only partly. On-screen keyboards on phones often report every key as "Unidentified", so they will not light up here. A Bluetooth or USB keyboard connected to a phone or tablet works normally.