You hold W, Shift and Space in a game and your character refuses to jump. You type quickly and a letter occasionally vanishes. A key on a second-hand laptop feels fine but does nothing. These are different problems, and it pays to know which one you have before buying a new keyboard or sending one back.
This guide explains how keyboards detect key presses, what ghosting, blocking and rollover mean, how to test every key and your maximum simultaneous presses in a browser, and what to do with the results.
How a keyboard detects key presses
The key matrix
Most keyboards do not wire each key to the controller separately. Instead, keys sit at the crossing points of a grid of rows and columns. The controller scans the grid many times a second and works out which crossings are closed.
This is cheap and works perfectly for one or two keys at a time. With three or more keys held, certain combinations create an electrical path that makes an extra, unpressed key look pressed.
Ghosting
Ghosting is when the keyboard reports a key that you did not press, because of that phantom path in the matrix. It is rare on modern keyboards because manufacturers prevent it.
Blocking (jamming)
The usual prevention is to block: when a combination would be ambiguous, the controller simply ignores the extra key. Most people who say their keyboard "ghosts" are actually experiencing blocking. Keys pressed together are silently dropped.
Rollover
Rollover is the number of keys that can be held at once with every one correctly registered.
| Term | Meaning |
|---|---|
| 2KRO / 3KRO | Two or three keys guaranteed; more may be blocked depending on the combination |
| 6KRO | Six normal keys plus modifiers such as Shift and Ctrl, the limit of the traditional USB keyboard boot protocol |
| NKRO | N-key rollover: every key can be held at once and each is reported |
Many office keyboards guarantee only a few keys, but in practice handle common combinations well, because manufacturers arrange the matrix around typical shortcuts. Gaming and mechanical keyboards commonly advertise 6KRO or NKRO, often by using diodes on each key.
Rollover limits matter mostly for games, music software that uses the keyboard as a piano, and very fast typists who overlap key presses.
Testing your keyboard in the browser
Our Keyboard Tester lights up each key on a full on-screen layout and records your maximum simultaneous presses.
- Open the Keyboard Tester and click once on the page so it receives key presses.
- Press every key in turn. Keys turn blue while held and green once tested. Keys tested counts your progress across the layout.
- Turn off Show numeric keypad if your keyboard has no number pad, so the count matches your hardware.
- Leave Block browser shortcuts on so Tab, Space, the arrow keys and ' do not scroll or open find while testing.
- For the ghosting test, hold several keys together, for example A + S + D + F + J + K + L. Any key that does not turn blue while held is being blocked. Max at once (rollover) records the highest number of keys registered simultaneously.
- Test the combinations you actually use. For games, try W + A + Shift + Space, or the arrow keys with Space.
- Check the Key event history table for details of each press: the event, the
keyvalue, thecode, the legacykeyCodeand the Location (Left, Right, Standard or Numpad). - Click Reset test to start again.
The Location column is useful for checking that both Shift or both Ctrl keys work, since they share a label but report different locations. For developers, the same values are shown in more detail by a keycode finder.
Reading the results
A key never lights up
First make sure it is not one the operating system handles itself. The Fn key, some media keys, Windows key combinations and sometimes Print Screen never reach the browser, so they cannot light up here. That does not mean they are broken. For ordinary letter, number and symbol keys, no response means a fault.
A key lights up late or only sometimes
A dirty or worn switch, or a failing membrane, can register only with a firm press. Try pressing lightly and firmly and watch for inconsistency.
A key sticks on
If a key stays blue after you release it, it may be physically sticking or sending repeated signals. Watch the history table for unexpected "down" events.
Rollover stops at a low number
If Max at once stays at 2 or 3 for certain combinations but higher for others, you are seeing blocking caused by the matrix layout. That is normal for many standard keyboards. If it matters for your use, look for a keyboard advertised with 6KRO or NKRO.
Fixing and working around keyboard problems
Clean before you replace
Turn the keyboard upside down and tap it gently, then use compressed air between the keys. On mechanical keyboards you can remove keycaps to clean underneath. For laptops, follow the manufacturer's guidance and avoid prying keys off.
Check the connection
For USB keyboards, try another port and avoid unpowered hubs. For wireless keyboards, replace or recharge the batteries and move the receiver closer. Bluetooth keyboards sometimes drop keys when the connection is weak.
Check layout settings
If keys produce the wrong character, for example @ and " swapped, the hardware is fine and the operating system is set to a different keyboard layout. Change the input language or layout in system settings.
Update firmware
Some gaming keyboards have firmware settings that switch between 6KRO and NKRO modes, or turn features on and off. Check the manufacturer's software.
Related tests
To see how your keyboard handles speed rather than simultaneous presses, try a typing speed test. For mouse buttons, a CPS test measures click speed and confirms each click registers. If you are checking a whole second-hand laptop, run a dead pixel test on the screen as well.
Frequently asked questions
What is the difference between ghosting and blocking?
Ghosting is when a keyboard reports a key you did not press. Blocking is when it ignores a key you did press to avoid ghosting. Most modern keyboards block rather than ghost.
What does n-key rollover mean?
N-key rollover (NKRO) means every key can be pressed at the same time and each one is registered correctly. It is common on gaming and mechanical keyboards.
Why does my Fn key not show in the keyboard tester?
The Fn key is handled inside the keyboard or by the operating system and is never sent to the browser. Many media keys and some system shortcuts behave the same way.
Is 6KRO enough for gaming?
For most games and typing, six simultaneous keys plus modifiers is plenty. NKRO mainly helps in rhythm games, keyboard-based music software or unusual key bindings.
Does the keyboard tester record what I type?
No. Key presses are shown on the page and in the history table only while it is open, and nothing is saved or sent anywhere.