Keyboard Ghosting, Key Blocking and Rollover Explained
Why some keyboards drop keys when you press several at once, and how to check yours.
Press four or five keys at once on some keyboards and one of them simply does not register. In a game that means you cannot run, strafe and jump at the same time. Three ideas explain it: the key matrix, blocking and ghosting, and rollover.
The key matrix
A keyboard does not have a separate wire for every key. The keys sit on a grid of rows and columns, and the keyboard’s controller scans the grid many times a second to see which row and column are connected. That keeps the wiring simple, but it creates a problem when several keys are held.
If you hold three keys that form three corners of a rectangle on the grid, the fourth corner also looks connected, even though you are not pressing it.
Ghosting and blocking
When the keyboard reports that fourth key, it is ghosting: a key press appears that you never made. Old and very cheap keyboards did this.
Most keyboards today avoid ghosting by refusing to report the ambiguous key at all, so one of the keys you really pressed is ignored. That is called blocking, masking or jamming. A keyboard sold as anti-ghosting has usually solved ghosting this way: by blocking.
Better keyboards add a diode to each key, which removes the ambiguity, so every key can be read independently.
Rollover
Rollover is how many keys a keyboard can register at once.
- 2-key rollover: two keys, plus modifier keys. Common on older laptops for some combinations.
- 6-key rollover (6KRO): the simple USB keyboard report that every computer understands has room for six ordinary keys plus the eight modifier keys (left and right Ctrl, Shift, Alt and Windows or Command). Many keyboards stop there, even if their matrix could do more.
- N-key rollover (NKRO): every key independently. Keyboards that offer it over USB use a different kind of report, and some only enable it when you switch it on.
A keyboard can also have different limits in different areas: many keyboards sold for gaming have full rollover around W, A, S and D but not elsewhere.
How to test your keyboard
Open the keyboard ghosting test and hold the keys you use together, such as W + A + Shift + Space for a game, or several letters for fast typing. The panel lists every key the keyboard reports and the most it has registered at once.
- If all the keys appear, that combination works.
- If one is missing while the others are held, the keyboard blocks that combination.
- If a key appears that you are not pressing, the keyboard ghosts.
Try a few different combinations: a keyboard that handles one set of six keys may block a different set of three.
What you can do
Use a wired connection if the keyboard has one, and check its software or manual for an NKRO setting. For games, remap actions so that keys you hold together are in combinations the keyboard handles. If you need more, look for a keyboard advertised with n-key rollover and test it the same way when it arrives.