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
On a phone or tablet, connect a keyboard by Bluetooth or USB and press any key. The on-screen keyboard isn't a physical keyboard, so it isn't tested here.
Other keys
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
- 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.
- 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.
- 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.
- 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.
- 2-key or 3-key rollover is common on office keyboards and laptops. Some combinations of three or four keys lose one.
- 6-key rollover is the limit of the basic report every USB keyboard can fall back on. The USB HID specification gives that report one byte for the eight modifier keys (left and right Shift, Ctrl, Alt and Windows or Command) and six slots for other keys. Press a seventh and the specification has the keyboard report an error in every slot rather than guess.
- N-key rollover means every key registers however many you hold. Gaming and mechanical keyboards usually offer it, sometimes as a mode you switch on.
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.
- Blow out the switch with compressed air. On a mechanical keyboard, pull the keycap off first.
- If the maker's software offers a firmware update or a debounce setting, install the update or raise the debounce time a little.
- On a keyboard with hot-swap sockets, replace the switch. Otherwise a chattering key is usually a warranty repair.
Advertisement
Keys a web page can't test
- Fn never reaches the computer: the keyboard handles it and sends a different key instead. To check it, hold Fn and press another key, and see which key lights up. Volume and media keys appear under the keyboard, as other keys, when the browser receives them.
- The top row on a Mac laptop controls brightness, volume and the like, which macOS keeps to itself. Hold fn to test those keys as F1 to F12.
- Print Screen on Windows takes a screenshot before the browser hears the press, so the tester counts it when you let go.
- Browser and system shortcuts such as Ctrl+W, Ctrl+T and Alt+Tab close tabs or switch windows before a page can stop them. Choose Full screen first: in Chrome and Edge the full-screen tester captures those too, and you leave it by holding Esc for two seconds.
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
- Nothing lights up: click on this page first so it has the keyboard's attention. Then check the cable or receiver, try another USB port, and on a wireless keyboard charge it or change the batteries and pair it again. If it fails on a second computer too, the fault is in the keyboard.
- Keys respond only when held, or ignore quick presses: Windows Filter Keys may be on. It's under Settings, Accessibility, Keyboard, and holding the right Shift key for eight seconds turns it on, which is easy to do by accident. On a Mac, check Slow Keys under System Settings, Accessibility, Keyboard.
- One key or a few neighbours are dead: dirt under the keycaps or a spill is the usual cause. A whole row or column failing together points to the keyboard's circuit rather than the switches.
- Keys type the wrong characters: the computer is set to a different layout from the keyboard. A US keyboard on the UK layout swaps @ and ", for example. In Chrome and Edge the keys here show your computer's layout, so a mismatch shows straight away.
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