Keyboard Tester

Press any key. It lights up blue while held and turns green once it has been tested.

–Last key
–event.code
–keyCode
0Held now
0Max at once
0Keys tested

How to test your keyboard

  1. Click anywhere on this page and start pressing keys.
  2. Each key you press on the layout above turns green. Any key that never lights up may be dead or blocked.
  3. Hold several keys at once to see how many your keyboard can register together (key rollover).

What do the numbers mean?

event.code is the physical key position (for example KeyA), the same on every layout. keyCode is the older numeric code. “Max at once” shows the highest number of keys held at the same moment — useful for spotting ghosting on budget keyboards.

FAQ

A key does not light up. Is it broken?

Try pressing it a few times and a bit harder. If it still does not register, clean under the key, test with another browser, and check whether the operating system catches it (some media or Fn keys are handled by the system before the browser sees them).

Why do Fn, Windows or Print Screen not work?

Browsers cannot see some keys, because the operating system or keyboard firmware handles them first. That does not mean they are broken.

What is ghosting?

Ghosting is when pressing several keys at once makes a key not register, or registers a key you did not press. Hold combinations you use (for example gaming keys) and watch “Max at once”.

Is my typing recorded?

No. Key presses are only displayed on this page and are never sent anywhere.

Running a full keyboard check

  1. Click on the page once so it has focus, then press keys. A key turns blue while it is held and stays green afterwards, so you can see at a glance which ones you have not yet touched.
  2. Work through the picture row by row, from Esc along the top to the arrow keys at the bottom right. Press each key once and release it.
  3. Watch the counter named "Keys tested". The drawn layout contains 87 keys, so a counter of 87 with every key green means nothing was missed. Press "Reset" to clear everything and test again.

Alt+Tab, the Windows key and similar shortcuts may move you out of the page before it can register them. The held-keys list is cleared whenever the browser window loses focus, so a key you were pressing when that happened will not be stuck on screen.

Reading the six numbers

Holding a key down makes the operating system send repeated press events, but the tester stores keys by name, so a repeating key still counts as one held key.

Testing rollover and ghosting

Keyboards report presses through a wiring grid called a matrix. On cheap models, certain combinations of three or more keys cannot be told apart electrically, so a key goes missing or a phantom one appears. This is ghosting. Rollover describes how many simultaneous keys are reported correctly.

To test it, press and hold keys one at a time and watch "Held now". Try the combination that matters to you, for example W, A and Space plus Shift for a game, or hold six letter keys and then add a seventh. A keyboard limited to six ordinary keys, which is a common limit for standard USB reports, will stop counting once you pass six non-modifier keys; modifiers such as Shift and Ctrl are reported separately and do not use up those slots. Gaming boards advertise "N-key rollover" and should keep counting as you add fingers, as far as your hands allow. Results can also differ between wired and wireless modes and between operating systems.

Diagnosing a key that does nothing

What this tester cannot show

More questions

Why does my key show a different letter than the one printed on it?

"Last key" follows your operating-system layout, while event.code follows the physical position. If the two disagree with the printed legend, check the keyboard language setting in your system.

How can I tell a dead key from a key the browser cannot see?

Test the same key in a text editor or a built-in system tool. If it works there but never lights up here, it is handled before the browser sees it. If it works nowhere, the key or its contact is faulty.

Does a lower "Max at once" mean my keyboard is faulty?

Not necessarily. Many ordinary office keyboards are designed to report only six keys plus modifiers, and that is a normal limit rather than a defect.