How to Test Your Keyboard and Fix Common Problems
A step-by-step keyboard check, what ghosting and key rollover mean, how to deal with a key that types twice, and which problems are hardware faults.
A keyboard rarely fails all at once. More often a single key stops responding, a letter starts appearing twice, or a game ignores the third key you press at the same time. Before you buy a new keyboard or reinstall drivers, a few minutes of methodical testing will tell you whether the problem is the keyboard, the connection or the computer, and often how to fix it.
How a keyboard reports a key press
Under the keycaps, most keyboards have their switches wired in a grid of rows and columns called a matrix. A small controller chip scans the grid hundreds or thousands of times per second. When a switch closes, it connects one row to one column, and the controller knows exactly which key it was. It then sends a scan code over USB or Bluetooth to the computer.
The operating system turns that code into a key event, applies your keyboard language and passes it to the program you are using. A browser sees two important values for every press:
- code: the physical position of the key, for example
KeyQ. It does not change with the keyboard language. - key: what that key produces right now, for example
q,Q, oraon a French layout where that position carries A.
This split is useful when testing. If the code arrives but the character is wrong, the hardware is fine and the problem is a language or layout setting.
A step-by-step keyboard test
- Rule out the simple things. Check the cable or battery, try a different USB port and, for wireless keyboards, re-pair or move closer to the receiver.
- Press every key once. Work row by row from the Esc key to the bottom row, including the numeric keypad, so you do not skip any.
- Watch for keys that never light up. These are not reaching the computer.
- Watch for keys that stay lit after you let go. These may be sticking mechanically.
- Type a few lines of text. Look for doubled letters such as "heello" or letters that only appear when pressed hard.
- Hold several keys together. Try combinations you actually use, such as W, A and Shift in a game, and check that all of them register.
- Test on a second computer if you can. If the same keys fail there, the keyboard is at fault. If they work, look at the original computer's settings or drivers.
Worked example: a key that types twice
Suppose the letter E sometimes appears twice when you type. Open a plain text editor, press E slowly ten times and count the letters. If you get eleven or twelve, the switch is sending extra presses. This is called chatter, and it usually means dust or worn contacts inside the switch.
What to try, in order:
- Turn the keyboard upside down and tap it gently, then blow compressed air under the key from several angles.
- On a mechanical keyboard, remove the keycap with a keycap puller and press the bare switch quickly 20 or 30 times. That often clears dust from the contacts.
- If the keyboard has software, look for a debounce setting. Debounce tells the controller to ignore extra signals for a few milliseconds after each press; a slightly longer delay can hide mild chatter.
- If nothing helps, the switch may need replacing. Many mechanical keyboards have hot-swap sockets that make this a two-minute job.
Ghosting and key rollover
Because of the matrix wiring, pressing three keys that share rows and columns can make a fourth key appear to be pressed. That phantom key is called a ghost. To prevent it, cheaper keyboards simply refuse to report some combinations, which is called blocking.
The number of keys a keyboard can register at the same time is its key rollover:
- 2KRO: any two keys plus modifiers such as Shift and Ctrl. Fine for typing.
- 6KRO: six keys plus modifiers, the classic limit of the basic USB keyboard mode.
- NKRO (n-key rollover): every key can be held at once, common on gaming and mechanical keyboards.
To check rollover with the Keyboard Tester, hold down keys one at a time without letting go and watch how many stay solid. If a newly pressed key does not light up while others are held, you have reached the limit for that combination. Test the combinations you actually need, because on many keyboards some groups of keys are wired for better rollover than others.
How to use the tester
The Keyboard Tester shows a full-size on-screen board with 104 keys. Click the test area so it has focus, then press keys. A key turns solid while held and stays highlighted once tested, so you can see at a glance which ones you have covered. The result card shows the key, code and location of the last press (left, right, standard or numeric keypad), plus your progress. Keys that are not on the board, such as media keys, are listed separately. Press Reset to start over. Nothing you type is stored or sent anywhere.
Common causes and fixes
- One dead key: usually dirt under the key or a failed switch. Clean it first. On laptops, a liquid spill is a common cause and may need a repair service.
- A whole row or block dead: often a broken trace in the matrix or a loose ribbon cable inside a laptop. This is a hardware fault.
- Wrong characters: the keyboard language or layout is set incorrectly in your system settings. Check whether the code is correct while the key is wrong.
- Numbers do not work on the keypad: Num Lock is off, so the keys act as arrows and Home or End instead.
- Keys repeat on their own: check the key repeat delay in system settings, then check for a stuck key.
- Delays on a wireless keyboard: low battery, interference from other devices or too much distance from the receiver.
- Fn and some media keys never register: many keyboards handle these internally and never send them to the computer. That is normal and not a fault.
Keeping a keyboard healthy
Most keyboard problems start with crumbs, dust and spills. Turn the keyboard over and shake it gently every few weeks, use compressed air now and then, and wipe the keycaps with a slightly damp cloth while it is unplugged. Keep drinks away from it, or at least use a cup with a lid. On mechanical keyboards, pulling the keycaps once or twice a year for a deeper clean keeps switches feeling consistent.
FAQ
What is the difference between ANSI and ISO keyboards?
They are the two main physical layouts. ANSI, common in the US, has a wide horizontal Enter key and a long left Shift. ISO, common in much of Europe, has a tall Enter key and an extra key next to a shorter left Shift. The on-screen board uses the ANSI layout, but the keys still light up by position.
Can a keyboard tester detect input lag?
Not reliably. A browser cannot measure the delay between your finger and the key event, because the timing of the press itself is unknown. Lag tests need special hardware or high-speed cameras.
Why does the Windows or Command key open a menu instead of lighting up?
The operating system often handles those keys before the browser gets them. Some systems still pass the key event through, so it may light up and open the menu at the same time.
Is it worth repairing a keyboard?
For a laptop, a single bad key is often fixable by replacing the keycap or switch, while larger faults usually mean replacing the whole keyboard part. For a mechanical desktop keyboard, individual switches are cheap and easy to replace, especially on hot-swap boards.