Keyboard keys not working? A step-by-step fix
First find out whether the computer is receiving the key at all. Open the keyboard tester and press the keys that fail. A key that lights up is arriving, so the problem is a setting or the program you were typing in. A key that stays dark is not arriving: check the accessibility settings that filter key presses first, then the connection, the keyboard and the driver. The steps below go in that order, from the checks that take seconds to the ones that cost money.
Step 1: is it one key, a group of keys, or everything?
The pattern tells you more than any single test.
| What fails | Most likely cause |
|---|---|
| One key | That key’s switch or the dirt under it |
| A row or a cluster of neighbouring keys | Liquid damage, or a broken trace in the keyboard’s circuit |
| The number pad only | Num Lock is off |
| Letters type the wrong characters | The keyboard layout setting, not the hardware |
| Everything, suddenly | The connection, the batteries, or a driver |
| Keys work in one program but not another | That program, or a shortcut it has grabbed |
Keys share wires inside a keyboard, laid out in a grid. When a whole column of keys dies together, such as 3, E, D and C, that is almost always one damaged line in the grid rather than four failed switches, and it usually means a spill or a crack.
Step 2: test the keys outside your usual program
Open the keyboard tester and press every key once. Each key lights up when the browser receives it and stays lit, so any key still dark at the end did not register. The event log under the board shows each key down and key up with its code: what programs receive after the operating system has handled the key.
- The key lights up. The keyboard is fine. Go to step 5: the problem is a setting or the program.
- The key stays dark. Either the keyboard is not sending it, or the operating system is holding it back. Check Filter Keys and Slow Keys in step 5 first, because both can stop a press reaching any program, the browser included. Then go on to step 3.
- The key lights only when pressed hard. The contact is dirty or worn. Go to step 4.
A few keys never reach any web page by design, so do not count them as broken: Fn is handled inside the keyboard itself, and some media and system keys are taken by the operating system before a browser sees them. The guide to what a browser test can and cannot measure lists them.
Step 3: rule out the connection
If several keys or the whole keyboard went dead, check the link before the keys.
Wired keyboards
- Unplug it and plug it into a different USB port, ideally one directly on the computer rather than a hub or the front of a desktop case.
- Try it on a second computer. If it fails there too, the keyboard is at fault. If it works there, the first computer’s port, driver or settings are.
Wireless keyboards
- Replace or charge the batteries first. A weak battery often drops some key presses before the keyboard dies completely, which looks like random keys not working.
- Move the USB receiver closer, for example to a front port or onto a USB extension cable on the desk. Metal desks, USB 3 ports right next to the receiver and other 2.4 GHz devices all weaken the signal.
- For Bluetooth, remove the keyboard from the computer’s Bluetooth list and pair it again.
Laptop keyboards have no cable to check. Plug in a USB keyboard: if it works, the computer is running normally and the fault is in the built-in board, its ribbon cable or its driver.
Before the operating system loads, try the keys in the computer’s setup screen (often F2, Del or Esc at power on) or at the sign-in screen. Keys that work there but not after you sign in point to software rather than the keyboard.
Step 4: clean the key
Dust, crumbs and dried spills are the commonest cause of one key that fails or needs a hard press.
- Unplug the keyboard or switch it off.
- Turn it upside down and tap it gently to shake out loose debris.
- Blow compressed air under the keycap from several angles, in short bursts, while holding the key down.
- On a mechanical keyboard, pull the keycap off with a keycap puller and blow into the switch itself. Pressing the bare switch a few dozen times can clear a sticky contact.
- For a sticky spill, wipe around the switch with a cotton swab lightly dampened with isopropyl alcohol, then let it dry completely before reconnecting.
Do not pull keycaps off a laptop or a low-profile keyboard unless you know how its clips work: they break easily and are hard to replace.
If a key types twice rather than not at all, that is a different fault, called chatter. The guide to fixing keyboard chatter covers it.
Step 5: check the settings that stop keys working
These settings block or change keys. The first three act before any program sees the key, so they can leave a key dark on the keyboard tester too. The rest act only inside programs, so the tester shows the key arriving while your program ignores it or types something else.
- Filter Keys (Windows). This accessibility option ignores brief or repeated key presses. It switches on if you hold the right Shift key for about eight seconds, which happens by accident. Check it in Settings, under Accessibility, Keyboard.
- Slow Keys and Mouse Keys (macOS). In the Accessibility settings, Slow Keys ignores short presses and Mouse Keys turns some letter and number keys into pointer controls.
- Sticky Keys. Pressing Shift five times turns it on; modifier keys then latch, which makes shortcuts behave strangely.
- Num Lock. The number pad types numbers only with Num Lock on. With it off, the same keys act as arrows, Home and End.
- Fn Lock. On many laptops and compact keyboards, Fn Lock swaps the top row between F1 to F12 and media actions. If the top row does the wrong thing, press Fn with Esc, or the key with a padlock icon.
- The keyboard layout. If Z and Y are swapped, or symbols are in the wrong place, the operating system is using a different layout from the one printed on the keys. On Windows, Win+Space and Alt+Shift switch layouts and are easy to press by accident.
- A game or app that grabbed the key. Overlays, macro tools and some games capture keys before other programs see them. Close them and try again.
- A gaming keyboard’s software. Keys can be remapped or disabled in the maker’s app, and some boards have a “game mode” that switches off the Windows key. Look for a lock light.
Step 6: reset the driver
If the keyboard works on another computer but not this one:
- Windows: open Device Manager, expand Keyboards, right-click the keyboard and choose Uninstall device, then restart. Windows reinstalls the standard driver on boot.
- macOS: remove any keyboard utilities you installed, then restart. For a Bluetooth keyboard, remove it from Bluetooth settings and pair it again.
Step 7: repair or replace
If a key still stays dark on the tester after cleaning, on two computers, the switch, the membrane under it or the circuit is damaged.
- Hot-swap mechanical keyboards: pull the dead switch and press in a new one. A minute’s work.
- Soldered mechanical keyboards: the switch can be desoldered and replaced, a short job for a repair shop.
- Membrane and laptop keyboards: a single key cannot be repaired in practice. A laptop keyboard is replaced as one part.
- Under warranty: record which keys stay dark on the tester and claim. A screenshot of the board with the dead keys unlit is a useful record.
Before you buy a new keyboard
Test the new one the day it arrives: press every key, hold the combinations you use in games, and type normally for a minute to catch any key that doubles. A fault found in the return window costs nothing. If keys only fail when you hold several at once, the board is not broken: it is blocking keys by design, which the guide to ghosting and n-key rollover explains.
Test it
- Keyboard tester: Every key, rollover, repeat rate and chatter.