Keyboard test

Keyboard test

Press any key. Each one lights up while you hold it and turns green once it has worked, so dead, stuck and double-typing keys stand out.

0 / 0keys working

0held now

0most at once

0double presses

Click here to carry on testing

Last key

key
–
code
–
keyCode
–
Location
–
Held for
–
Presses
–

Rollover and ghosting

No keys held.

Typed

Keys not pressed yet (0)

Every key is captured while you test, Tab included. To move on with Tab, press it three times quickly.

How to test your keyboard

  1. Press every key once. Each key turns green when the keyboard reports it. The counter shows how many are left, and the list under the keyboard names them.
  2. Hold several keys together. Keys you are holding light up orange. If one doesn't, the keyboard blocked it. The panel beside the keyboard counts the most it registered at once.
  3. Watch for red. A key outlined in red pressed itself a second time less than 50 milliseconds after you let it go. That is how a worn or dirty switch types double letters.
  4. Look for keys that stay orange after you let go. A key that goes on reporting itself held is stuck, physically or electrically.

The layout is set for your computer: a Mac gets Mac keys, and in Chrome and Edge the keys show the characters of your own keyboard layout, such as AZERTY or QWERTZ. If it doesn't match your keyboard, change it above the keys. Pressing a number pad key switches to the full-size layout by itself, and the extra key beside left Shift on UK and European keyboards switches to the ISO shape with its tall Enter key.

Copy results puts a summary on the clipboard (keys working, keys never pressed, rollover and any double presses), ready to paste into a return or warranty claim.

Advertisement

Rollover and ghosting

Most keyboards don't wire every key to the controller separately. The switches sit on a grid of rows and columns, and the controller scans the grid to see which crossings are closed. Hold three keys on three corners of a rectangle in that grid and current can flow back through them, so the fourth corner reads as pressed too. That phantom key is ghosting.

To avoid typing phantom keys, a keyboard drops the key that would be ambiguous, so what you actually see is a key that doesn't register while others are held, often called blocking or jamming. Keyboards with a diode on each switch don't have the problem and can report every key at once.

Test the combinations you actually use. For games, hold W, A and Shift with Space, then W, D, Shift and Space. For typing, hold Q, W, E, R, T and Y together. Then add keys one at a time until one fails to light. The tester counts the modifier keys separately from the rest, since a 6-key rollover keyboard can send all eight of them alongside its six other keys.

Advertisement

Double typing and chatter

When a key switch closes, its metal contacts bounce for a few milliseconds before they settle, and the keyboard's firmware waits out the bounce before it reports the press. This is called debouncing. As a switch wears, or when dirt or a spill gets inside, the bounce outlasts what the firmware allows for and one press arrives as two. That is chatter, and it is how a keyboard comes to type "thhe" or "lettters".

The tester flags a key in red when it reports a new press less than 50 milliseconds after it was released, and lists it with the shortest gap measured. Letting go of a key and pressing it again takes a person far longer than that, so a gap that short comes from the switch. To confirm a suspect key, press it slowly twenty times and watch its count under Last key.

Advertisement

Keys a web page can't test

With Num Lock off, the number pad sends arrow and page keys instead of digits, but the tester still lights the key you pressed, because it goes by each key's position rather than the character it types.

Advertisement

If a key or the whole keyboard doesn't work

Key codes for developers

Under Last key, each press shows what the browser reports. code names the physical key, so KeyA is the same key on a QWERTY and an AZERTY keyboard. key is the character or action it produced, which depends on the layout and on Shift. keyCode is the older number that scripts read before code existed: deprecated, but still widely used. The code names follow the W3C's UI Events KeyboardEvent code values. Nothing you type here is sent anywhere or saved.

For a mouse, the mouse click test checks every button and catches unwanted double clicks, and the touch screen test does the same job for a touch screen.

Advertisement

Advertisement

Advertisement

Advertisement