Fix guide · Keyboard
Keyboard keys not working: how to fix them
First find out which fault you have. Press every key on the keyboard tester. A key that never lights is dead: dirt, liquid or a failed switch. A key that lights as a different key is a layout, Num Lock or remap setting. If every key lights there but not in one app or game, the keyboard is fine and the cause is that app.
Updated
Test it first
Free tests that run in your browser. Nothing is uploaded.
- 1 Keyboard tester 1 min
Press every key once. Keys that never light are dead, keys that light as another key point to a setting, and chatter flags mean a worn switch. Hold your game keys together to check rollover.
- 2 Spacebar counter 10 s
Pick 'Exactly 10' and press Space 10 times at a calm pace. Fewer than 10 means dropped presses, more means chatter. The press log shows each press, its gap and how long it was held.
Keyboard keys not working: read the tester first
When keyboard keys are not working, the fix depends on which fault you have, and the keyboard tester tells them apart. Every key you press stays highlighted, so a dead key is the one that never lights. It also flags chatter, a key pressed again within 30 ms of release, and counts how many keys you can hold at once (rollover).
| What you see on the test | Likely cause | What to do |
|---|---|---|
| One or a few keys never light | Dirt, liquid or a dead switch | Clean, then switch or repair |
| A whole row or block never lights | Key grid circuit or laptop cable | Repair or new keyboard |
| A key lights as a different key | Layout, Num Lock, Fn Lock or remap | Fix the setting |
| A key is flagged for chatter | Worn or dirty switch | Clean, debounce, new switch |
| All keys light, but not in a game | App, key binding or rollover | Check the app and combos |
| Nothing lights at all | Connection, power or Filter Keys | Check cable, battery, settings |
For the spacebar, the spacebar counter is the closer check. In “Exactly 10” mode, 9 presses means one was dropped and 11 means the key fired on its own. Its press log flags a press held far longer than the rest, which is how a spacebar that sticks down for a moment shows up.
Why are my keyboard keys not working?
Most likely first:
- Dirt, crumbs or hair under the key. The key feels stiff or only works when pressed hard.
- A setting that changes what keys do. Windows Filter Keys ignores short presses. A changed keyboard layout or input language types the wrong letters. Num Lock on a laptop turns some letters into numbers. Fn Lock swaps the top row.
- A remap tool or keyboard software that moved a key, set a macro or turned on a “game mode” that disables keys such as the Windows key.
- A worn switch. It drops presses or types twice (chatter).
- Liquid. Even a dried spill can leave sticky residue or corrode the circuit.
- A connection fault. A loose cable, low battery, wireless receiver far away, or a laptop ribbon cable that has worked loose.
- A circuit fault. Keys are wired on a grid of rows and columns. When one line breaks, every key on it stops, which is why some keys fail together even though they are far apart on the board.
How to fix keyboard keys not working, in order
1. Rule out the connection
- Unplug the keyboard and plug it straight into another USB port on the computer, not a hub.
- For wireless, turn it off and on, replace or charge the batteries, and move the receiver to a front port or closer.
- Try the keyboard on another computer. If the same keys fail there, it is the keyboard.
2. Fix the settings on Windows 11
- Filter Keys and Sticky Keys: open Settings > Accessibility > Keyboard and turn both off. Holding right Shift for about 8 seconds can turn Filter Keys on without you noticing, and then quick presses are ignored.
- Keyboard layout: open Settings > Time & language > Language & region, open your language’s options and check the keyboard listed. Remove any layout you did not add. A shortcut such as Left Alt and Shift switches layout, which is the usual reason keys suddenly type the wrong characters.
- Num Lock and Fn Lock: on a laptop without a number pad, press Num Lock (often Fn plus a key) if U, I, O, J, K and L type numbers. If the F keys act as media keys, or the other way round, toggle Fn Lock.
- Remap tools: check PowerToys Keyboard Manager and your keyboard software for remapped keys, macros or a game mode.
- Reinstall the keyboard: open Device Manager, expand Keyboards, right click your keyboard, choose Uninstall device, then restart. Windows sets it up again on start.
Then run the keyboard tester again.
3. Fix the settings on a Mac
- Open System Settings > Accessibility > Keyboard and turn off Slow Keys and Sticky Keys. Apple says Slow Keys adds a delay before a key press counts, so quick taps can seem dead.
- Open System Settings > Accessibility > Pointer Control and turn off Mouse Keys. While it is on, Apple says the keyboard and number pad cannot type text.
- Check System Settings > Keyboard > Text Input for an input source you did not add.
4. Clean the keyboard
- Unplug it or power off the laptop.
- Turn it upside down and tap it gently.
- Blow compressed air between the keys in short bursts, can upright so no liquid comes out.
- On a mechanical keyboard, pull the keycap with a keycap puller and clean around the switch, then press the switch 50 to 100 times quickly to clear its contact, as the keyboard tester page suggests.
Laptop keycaps clip on with small plastic hinges that break easily. Leave them on unless the maker’s guide shows how to remove them.
5. Mechanical keyboards: switches and stabilisers
- Debounce: if a key chatters, raise the debounce time in the keyboard software, if it has one. It hides the fault but the switch keeps wearing.
- Hot-swap boards: pull the switch with a switch puller and push in a new one of the same type. Check the product page first: on most boards the switches are soldered.
- Soldered switches: a new switch needs desoldering, which usually voids the warranty.
- Stabilisers: a spacebar, Shift or Enter that sticks, rattles or only works in the middle often has a dirty or unclipped stabiliser. Clean and lube it, or clip the wire back in.
6. Liquid spills
- Unplug the keyboard, or shut down a laptop and unplug the charger at once. Remove the battery if it comes out.
- Turn it upside down to drain and blot what you can reach with a cloth.
- Let it dry fully for a day or more before you power it on.
- Do not use a hair dryer, oven or heater. Heat can warp plastic and the membrane.
Water may dry out cleanly. Sugary or milky drinks leave residue that keeps keys sticky or dead. On a laptop, a spill can reach the board below, so go to a repair shop if it does not work fully after drying.
7. Laptops: test with an external keyboard
Plug in a USB keyboard. If it works and the built-in one does not, the laptop keyboard or its ribbon cable is at fault, not Windows or macOS. If both fail in the same way, it is a setting or a driver. Several dead keys in one area, or keys that come and go when you press on the case, usually mean the cable or keyboard needs replacing.
When to stop: warranty, repair or replace
Stop and contact the maker when keys stay dead after cleaning and the settings check, or when a whole row is out. Write down which keys fail on the tester. On a laptop, the keyboard is often built into the top case, so the repair can cost much more than a desk keyboard. On a cheap desk keyboard, replacing it is usually simpler.
Apple ran a Keyboard Service Program for MacBook models with the butterfly keyboard. Apple’s page now says that program has ended, so a sticky or repeating key on those models is a normal paid repair today.
What the browser test cannot tell you
- Some keys never reach a web page. Fn usually does not, and many media keys, Print Screen and the Windows or Cmd key can be taken by the system first. A dark Fn key on the tester is normal.
- It cannot see inside the switch. It shows a dead key or chatter, not whether dirt or wear causes it. Clean first, then test again.
- Debounce can hide chatter. Keyboard software that filters bounce stops the second press before the browser sees it.
- Phones send characters, not key presses, so the keyboard tester needs a real keyboard.
If the problem is your mouse rather than the keys, see mouse double clicking.