N-key rollover and keyboard ghosting explained
N-key rollover means a keyboard registers every key held at once. Learn what 2KRO, 6KRO, NKRO, ghosting and anti-ghosting mean, and how to test yours.
N-key rollover (NKRO) means a keyboard registers every key you hold down, however many that is. Key rollover in general is the number of simultaneous keys a keyboard can report correctly, and keyboard ghosting is the fault that appears when a keyboard goes past its limit: a key you never pressed shows up, or a key you did press is ignored.
What key rollover means
Key rollover is a keyboard's ability to handle several keystrokes at once. It matters even in plain typing: a fast typist presses the next key before the last one is released, and the keyboard has to keep track of both.
The number in front of KRO is how many keys are guaranteed to work together.
| Term | What it promises | Where you meet it |
|---|---|---|
| 2KRO, two-key rollover | Any two keys together. A third may be blocked, depending on which keys they are. | Keyboards with a plain matrix that blocks risky combinations |
| 6KRO, six-key rollover | Any six ordinary keys, plus modifier keys | Keyboards that are limited by the basic USB format |
| NKRO, n-key rollover | Every key at once, in any combination | Keyboards with a diode or sensor for every key |
A 2KRO keyboard often manages more than two keys. The label only says that some three-key combinations will fail.
Why keyboards lose keys: the matrix
A keyboard with 100 keys does not run 100 wires to its controller. The switches sit in a grid of rows and columns, called a matrix, and the controller scans the grid to see which crossings are closed. That needs far fewer connections, and it is the reason for both faults below.
Keyboard ghosting
Picture four keys on the corners of a rectangle in the matrix: two rows, two columns. If three of them are down, current can travel around the rectangle through the three closed switches and arrive on the row and column of the fourth. The controller sees the fourth corner as pressed. That phantom key is ghosting.
Blocking, also called jamming
A ghost letter in your text is worse than a missing one, so modern controllers detect the risky pattern and refuse to report the third key at all. Wikipedia calls this jamming and the Deskthority wiki calls it blocking. It is what most people notice today: you hold two keys, press a third, and nothing happens.
The two words are often mixed up. Deskthority notes that some makers say ghosting when they mean blocking.
How diodes fix both
A diode lets current flow one way only. Put one in series with every switch and current can no longer sneak backward around the rectangle, so there are no ghosts and nothing needs to be blocked. That gives true n-key rollover in the matrix. Keyboards whose switches are sensed without electrical contact, such as capacitive and Hall effect designs, reach the same result another way.
Some gaming keyboards take a cheaper route and give diodes only to the keys used most in games, such as W, A, S and D.
What anti-ghosting means
Anti-ghosting is a marketing term without a fixed definition. Depending on the maker, it means one of these:
- The controller blocks ghost keys. Almost every modern keyboard does this.
- The matrix is laid out so that common game combinations never fall on a rectangle. Deskthority calls this a gaming optimized matrix and points out that it does not remove blocking, it only moves it away from certain keys.
- Full n-key rollover, described loosely.
If the number of simultaneous keys matters to you, look for a stated rollover figure, then test it.
6KRO and the USB limit
USB keyboards can talk to a computer in two ways. The simple one, the boot protocol, exists so that a keyboard works before an operating system has loaded, for example in firmware setup screens. According to Wikipedia's summary of it, each report carries the state of eight modifier keys (the left and right Ctrl, Shift, Alt and Windows keys) and at most six other key codes. A keyboard that always uses this format is 6KRO, however good its matrix is.
The full USB format, which operating systems use, sets no such limit. A keyboard can describe a larger report and send every key. Makers also reach NKRO by having the keyboard present itself as several keyboards at once, each reporting six keys. Deskthority warns that these workarounds can cause compatibility problems with some systems.
Sources count the modifiers differently: Deskthority describes the limit as six keys with four modifiers, and adverts that claim figures such as 10KRO are often counting six keys plus modifiers.
How to test key rollover with the keyboard tester
The keyboard tester lights each key while it is held, which is all a rollover test needs.
- Open the tester and click the page so it has focus.
- Hold down one key, then add a second and a third without letting go. Keep adding keys and watch which ones light up.
- Note the point where a new key fails to light, or where a key you are not touching lights up. The first is blocking, the second is ghosting.
- Repeat with different groups of keys. On a matrix keyboard the limit depends on which keys you choose, so one test is not enough.
- Test the combinations you use: W, A, S, D with Shift and Space for games, or the chords of a music program.
- Hold both Shift keys and press each letter in turn. On some keyboards a few letters will not register this way, a blocked combination that is easy to find.
One caution: the tester shows what the browser receives, so a key combination that your operating system or browser keeps for itself may not appear.
To see whether rollover affects your real typing, run the typing test. Letters that drop only when you type fast can be a sign of blocking, though a worn switch causes the same symptom. If single keys fail by themselves, start with keyboard not working instead.
How much rollover you need
- Typing: Even fast typing overlaps only a few keys, and only for a moment. A keyboard that never blocks the overlaps of ordinary words is enough.
- Games: Holding two arrow keys or two of W, A, S and D is the usual way to move diagonally, and a jump or a modifier on top makes three or four keys held for seconds. This is where a 2KRO keyboard fails.
- Anything that holds many keys at once: If your software expects chords of five or more keys, look for a stated 6KRO or NKRO figure and test it.
Rollover has an older relative. On a typewriter, pressing a second key before the first typebar has fallen back makes the two bars collide and jam, as described in how a typewriter works. A typewriter has no rollover at all: one key at a time is the rule.
Sources
Questions people ask
- What is n-key rollover?
- N-key rollover, or NKRO, means the keyboard correctly registers any number of keys held down at the same time, in any combination. It is also called full key rollover.
- What is keyboard ghosting?
- Ghosting is when holding three keys makes the keyboard report a fourth key that nobody pressed. It happens when the three keys sit on three corners of a rectangle in the key matrix. Most modern keyboards avoid the ghost by ignoring the third key instead, which is called blocking or jamming.
- What is the difference between 6KRO and NKRO?
- A 6KRO keyboard reports up to six ordinary keys at once, plus modifier keys such as Shift and Ctrl. An NKRO keyboard reports every key. The six key figure comes from the simple USB keyboard format used at startup, not from the switches.
- What does anti-ghosting mean?
- It has no fixed meaning. Some makers use it for a keyboard that blocks ghost keys, and some for a matrix arranged so that common gaming combinations such as W, A, S and D are never blocked. Neither is the same as n-key rollover.
- How do I test key rollover?
- Open a keyboard tester, hold down several keys at once and count how many light up. Add keys one at a time until one fails to register. Try the combinations you really use, and try both Shift keys with each letter.
- Do I need n-key rollover for typing?
- No. Typing overlaps only a few keys at a time, so a keyboard that handles the combinations of fast typing without blocking is enough. Rollover matters more in games, where several keys are held together for seconds.