N-Key Rollover: What It Is and How To Test Your Keyboard (2024)

N-Key Rollover: What It Is and How To Test Your Keyboard (1)

In this article, I'll explain what n-key rollover is and some of the available methods for testing your keyboard's level of rollover support. N-key rollover relates to the ability of a keyboard to correctly recognize multiple key presses at once (in the case, the ability to press as many keys as you want) and is a feature that is needed among the following areas of computing:

  1. Gaming
  2. Braille Input

Even if you are not in either one of these categories, this article may still be of interest to you since keyboards with n-key rollover are generally of higher quality. Most keyboards providing n-key rollover are of the mechanical key switch type as opposed to the rubber dome style keyboards which are, unfortunately, cheaply made and distributed with desktop PC's these days. However, I'll leave it up to another article and/or the curiosity of the reader to delve into the wonders of mechanical key switch keyboards. An excellent place to start is here.

N-Key Rollover Explained

What is it?

N-key rollover, often referred to as NKRO for short, is a term that is known and appreciated by many gaming enthusiasts but may not be as widely known as another term, anti-ghosting. Anti-ghostingis a term frequently used by Microsoft, Logitech, and other popular keyboard manufacturers when marketing their products. It is important to know the difference between the two terms:

  • N-Key Rollover - The press of each key on a keyboard can be detected individually, which means that each key you press will be seen by your operating system no matter how many keys you are holding down simultaneously (hence the variable 'n' in n-key to refer to as many keys as are possible to press on a keyboard).
  • Anti-Ghosting - This can refer to the ability of a keyboard to recognize 3 or more key presses at once. The main thing to point out is that anti-ghosting usually implies that there is a limit on which combinations of keys and how many of them can be pressed simultaneously, while n-key rollover keyboards have no such limit (except when using USB, see 'PS/2 vs USB Technical Limitations' below).The number of simultaneously recognized key presses varies between each model of keyboard that does not have full n-key rollover. In some ways, you can think of anti-ghosting as an attempt by manufacturers to improve functionality of cheaply made rubber dome keyboards, without having to implement proper n-key rollover functionality.

    Note: Although this is how the term anti-ghosting is usually used, ghostingon a keyboard actually refers to something else. "Ghosting is when you press two keys on the keyboard, and a 3rd key - which you didn't press - gets sent to the PC as well. This is very rarely seen on even the cheapest modern boards, because manufacturers have the habit of limiting the rollover so that ghost keys are always blocked." -Overclock.net Forums

If you'd like to explore this topic in greater depth, I highly recommend starting with the following:

  • Technological Background Information - Even though this is on a braille-oriented site, skip to the section titled 'Technological Background Information' for an excellent discussion on n-key rollover (which most keyboards had in the early days of computing before keyboards became cheap commodity items).
  • Wikipedia - Explanation of keyboard rollover.
  • Microsoft Applied Sciences - Explanation of keyboard ghosting.

Why Should I Care About It?

It is probably about time to give an example to bring things into context. The Microsoft Sidewinder X6 keyboard is a fairly recent gaming keyboard that is frequently criticized for its anti-ghosting capabilities or lack thereof. With this particular keyboard, the common complaint is that gamers can't press certain 3-key combinations like:

  • Ctrl + W + R (Crouch + Forward + Reload)

In this case, after pressing the first two keys (Ctrl + W), the third key (R) doesn't register. While key combinations like this may not be used by every gamer, it is a real problem...even with keyboards like this marketed towards gamers. Whether you are a gamer, a photoshop user, or power user of other software you may come across certain 3-key combinations/shortcuts that may not work. The circuitry in keyboards these days is designed in such a way that only certain key combinations work. Engineers optimize the circuitry so that the most common combinations will work, but the inherent drawback with the designs is that there will be combinations that just won't work. Again, I'll refer you to the Microsoft Applied Sciences article for a much more in-depth explanation.

My intent is not to single out the Microsoft keyboard, but to demonstrate that you may run into issues like this if you don't have a keyboard that has full n-key rollover support.

PS/2 vs USB Technical Limitations

Keep the following in mind if you have an n-key rollover keyboard that can be hooked up to your computer through either USB or a PS/2 port:

  • USB protocol limitation - A max of 10 simultaneous key presses are recognized, 6 non-modifier keys ('w', 'a', 's', 'd', etc) + 4 modifier keys (Shift, Caps, Ctrl, etc). Although you are limited to 6 regular keys you are still guaranteed that any combination of keys will be recognized properly if you have an n-key rollover keyboard. I would guess that most people would not need support for more keys than this. I would also guess that the 6 key limit may have had something to do with braille input requirements rather than someone choosing an arbitrary limit (although that doesn't explain why the limit exists in the first place).
  • PS/2 - There are no limitations when using a PS/2 connection with your keyboard. You will truly get full n-key rollover support.

When given the choice between using PS/2 or USB, it is generally recommended to choose PS/2 since it doesn't have the rollover limitations. However, if you enjoy hotplug support which PS/2 doesn't have, USB may very well be the better choice for you.


Testing Your Keyboard's Rollover Behavior

There are several ways you can test rollover behavior on your keyboard. Among those I list below are:

  • Manual Typing Test
  • Web-based Tests/Demonstrations
  • Desktop Software (both Linux and Windows examples)

Test: Manual Typing

Often you'll see people mention the double shift-key typing test. It is a basic test for demonstrating the problems that arise when keyboards don't support n-key rollover. The test involves holding down both the left and right shift keys and typing the following sentence while still holding down both shift keys:

the quick brown fox jumps over the lazy dog

Use the following text input field to test it out yourself:

With most keyboards, you will see something like the following which was typed on a wireless Logitech keyboard (this will vary for each keyboard since each keyboard is optimized for different key combinations):
TE UIC RWN JUS VER TE LAY DG

You can see that a lot of characters were dropped during the test. This is what you should see:
THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG

Most consumer keyboards will not pass this test, so don't feel too bad that you have a crappy keyboard...because most keyboards are crappy like this. :-P

Trivia note in case you're not sure where this phrase came from:

"The quick brown fox jumps over the lazy dog" is an English-language pangram (a phrase that contains all of the letters of the alphabet). It has been used to test typewriters and computer keyboards, and in other applications involving all of the letters in the English alphabet. Owing to its shortness and coherence, it has become widely known and is often used in visual arts. -Wikipedia

Test: Web-Based

Microsoft Ghosting Demonstration

You can use the demonstration directly below or by going to the Microsoft Applied Science ghosting demo page here. Click within the demo and start pressing key combinations...

Tests: Desktop Software

Here are several desktop applications you can use to test n-key rollover functionality. The first one is Linux-based while the remaining ones are Windows-based.

Gnome Keyboard Properties (Linux-based)

Gnome is one of the desktop window managers for Linux and it has a great tool for testing n-key rollover even though that isn't its primary purpose. You can open the Gnome keyboard properties with one of the following methods:

  • Run 'gnome-keyboard-properties' from a terminal
  • Go to the Systemtoolbar menu on the desktop > then selectPreferences> then select Keyboard

N-Key Rollover: What It Is and How To Test Your Keyboard (2)

Once the keyboard properties window is open, go to the Layouts tab and click on the Add...button to open up the on-screen keyboard. Be sure to select the correct Country and Variant, then click within the keyboard area to start using it.

N-Key Rollover: What It Is and How To Test Your Keyboard (3)

If you regularly use Windows, you can still use the utility without having to install Linux. Just download an Ubuntu CD image (.iso file) from Ubuntuand either burn it to CD and run the Ubuntu desktop from the CD or install and run it from a USB stick...all without having to install Ubuntu on your hard drive. Further instructions for downloading and running it are on the Ubuntu website.

Aqua Key Test (Windows-based)

Aqua Key Test is a GUI application that shows an on-screen keyboard indicating the key presses that are being recognized. This is a small standalone executable that comes from Korea.

"Unlike ALL other keytest applications that I have tested (including commercial ones like PassMark KeyboardTest) this one is not tricked by fake strokes and checks only the real signals sent from your keyboard. What does this mean? This means that scripts and macro programs like AutoHotKey or AutoIt which generate keystrokes using the Windows API do not get picked up." -Geekhack.org Forums

N-Key Rollover: What It Is and How To Test Your Keyboard (4)

You can download it here.

Passmark KeyboardTest (Windows-based)

This is another GUI application that shows an on-screen keyboard indicating current key presses. However, this one is trial-limited to 30 days after which you need to pay for the software. You can go to the Passmark website to download it.

N-Key Rollover: What It Is and How To Test Your Keyboard (5)

N-Key Rollover: What It Is and How To Test Your Keyboard (2024)

FAQs

How to test for n-key rollover? ›

To test the rollover number, press three, then four and then five keys simultaneously. If they all display on screen, the keyboard has rollover for that number of keys.

What is key rollover on a keyboard? ›

Key rollover is the ability of a computer keyboard to correctly handle several simultaneous keystrokes. A keyboard with n-key rollover (NKRO) can correctly detect input from each key on the keyboard at the same time, regardless of how many other keys are also being pressed.

How do I check my NKRO keyboard? ›

The test involves holding down both the left and right shift keys and typing the following sentence while still holding down both shift keys:
  1. the quick brown fox jumps over the lazy dog. With most keyboards, you will see something like the following.
  2. TE UIC RWN JUS VER TE LAY DG. ...
  3. THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG.

How do I turn off n-key rollover? ›

The LED light by the media controls will blink once when NKRO is turned on. Press SHIFT + MUTE to turn NKRO off, and the LED light will blink twice. On the 4 Professional for Mac, press FN + F13.

How important is N-key rollover? ›

N-Key Rollover (NKRO) on a mechanical keyboard is a feature that allows each key press to be registered individually, even when multiple keys are pressed simultaneously. This ensures that no keystrokes are missed during rapid and complex key combinations, which is crucial for gaming.

Is my keyboard ghosting? ›

Ghosting is the problem that some keyboard keys don't work when multiple keys are pressed simultaneously. The keystrokes that don't show up on the computer or seem to have disappeared are said to have been “ghosted”.

Why is it called N-key rollover? ›

Where one keyboard might be able to handle half a dozen or more inputs, others might struggle to correctly recognise three keys pressed simultaneously. Rollover is quantified as n-key rollover, where n is the minimum number of keys that can be correctly registered when pressed simultaneously.

What is 2 key lockout and N-key rollover? ›

The two operating modes of keyboard section are 2-key lockout and n-key rollover. In the 2-key lockout mode, if two keys are pressed simultaneously, only the first key is recognized. In the N-key rollover mode, simultaneous keys are recognized and their codes are stored in FIFO.

What is the difference between 6-key and N-key rollover? ›

Sometimes you'll see the "n" in n-key rollover replaced with a number. That number tells you how many keys you can press simultaneously with the keyboard being aware. For example, if your keyboard has 6-key rollover, you can press six keys at once with successful input.

How do I test all my keyboard keys? ›

1 Press the keys on the physical keyboard and check if the keys you pressed are lit up on the virtual keyboard. 2 Click the “reset” arrow to remove existing content and test keyboard keys again to confirm they work properly. 4 If the online keyboard tester display responds immediately every time you press.

Is a 6 key rollover enough? ›

2-key rollover is only recommended for typing. In games, you most likely will run very soon into key combinations that won't work and end up with a rather frustrating gaming experience. One of the most common rollover types is 6-key rollover, and it's actually already perfectly fine for most cases of gaming or typing.

How do I activate NKRO? ›

To turn NKRO on press FN + PAUSE , which also enables Gaming Mode. The LED light will turn on below the Tetris symbol, located above the arrow keys, indicating that Gaming Mode and NKRO are enabled.

What is n key rollover in keyboard? ›

TIMESOFINDIA.COM / Mar 16, 2022, 20:34 IST. An N-key rollover in a keyboard means each key press in the keyboard will be registered individually when a number of keys are pressed simultaneously.

What is key rollover problem? ›

Key rollover is a measure of how many keys can be simultaneously registered by the keyboard. There are a number of types of rollover that keyboards can have, and any limitations they have arise from different problems and have different effects.

What is the key rollover method? ›

Definitions: The process of generating and using a new key (symmetric or asymmetric key pair) to replace one already in use. Rollover is done because a key has been compromised or is vulnerable to compromise as a result of use and age.

How do you test a keyboard circuit? ›

Plug the PCB into the computer via USB cable. For each key position, take whatever you're using to connect the switch pin pads and touch both of them at the same time. A key press should be detected by the tester software, unless it's a special key (see note below) Test all of the key positions in this manner.

How do you check how many keys you can press at once? ›

Key rollover is how many keys you can press at the same time. Start a rollover test by pressing and holding two or more of the A-Z or 0-9 keys and then press and release the shift key. Then press all the keys shown in red and orange one at a time to see if all combinatations of three or more keys are registered.

What is the difference between two key lockout and n-key rollover? ›

The two operating modes of keyboard section are 2-key lockout and n-key rollover. In the 2-key lockout mode, if two keys are pressed simultaneously, only the first key is recognized. In the N-key rollover mode, simultaneous keys are recognized and their codes are stored in FIFO.

How to test a mechanical keyboard? ›

Hands-on Testing: The most reliable way to test a mechanical keyboard is to try it out firsthand. By physically typing on the keyboard, you can assess its overall feel, typing experience, and any possible issues such as key wobbling or double-clicking.

Top Articles
Latest Posts
Recommended Articles
Article information

Author: Rev. Leonie Wyman

Last Updated:

Views: 6433

Rating: 4.9 / 5 (59 voted)

Reviews: 90% of readers found this page helpful

Author information

Name: Rev. Leonie Wyman

Birthday: 1993-07-01

Address: Suite 763 6272 Lang Bypass, New Xochitlport, VT 72704-3308

Phone: +22014484519944

Job: Banking Officer

Hobby: Sailing, Gaming, Basketball, Calligraphy, Mycology, Astronomy, Juggling

Introduction: My name is Rev. Leonie Wyman, I am a colorful, tasty, splendid, fair, witty, gorgeous, splendid person who loves writing and wants to share my knowledge and understanding with you.