Keyboard keys not working
Work through this in order. The cheap checks come first, because most "broken keyboard" cases are a setting, a cable or dirt, and a new keyboard fixes none of those.
1. Is it one key, a block, or everything?
Run the keyboard test and walk the board. The pattern tells you where to look:
- One key: that key's switch or the membrane under it. Usually mechanical or dirt.
- A block or a row: a connection inside the keyboard, or the ribbon cable on a laptop.
- Everything: not the keys at all. Cable, receiver, port, driver or a system setting.
2. Everything dead: check the connection first
- Unplug and replug. Try a different USB port, and on a desktop try a port directly on the back of the case rather than a hub.
- Wireless: replace the batteries or charge it, re-seat the receiver, and try a different port. Bluetooth: remove the device and pair it again.
- Try the keyboard on another computer. If it fails there too, the keyboard is the problem and you can stop reading the software steps.
3. Filter Keys and Sticky Keys
Windows has accessibility settings that make the keyboard appear broken. Filter Keys ignores brief or repeated keystrokes, which is exactly what a fast typist produces. Sticky Keys changes how modifier keys behave. Turn both off: Settings, Accessibility, Keyboard. On macOS, check System Settings, Accessibility, Keyboard for Slow Keys, which does the same thing.
If keys work but letters arrive late or get skipped, Filter Keys is the first suspect, not a dying keyboard.
4. The layout and language
If the key registers but types the wrong character, the keyboard layout is wrong. On Windows: Settings, Time and language, Language and region, and check the input method. A laptop with two layouts installed will switch between them with a shortcut, which is how people end up typing with the wrong one without noticing.
5. Drivers
On Windows, open Device Manager, find Keyboards, and remove the device, then restart. Windows reinstalls the standard driver on boot. This fixes the rare case where the driver itself has wedged, and it is harmless if it does not.
6. A single dead key: cleaning
Turn the keyboard upside down and shake it out, then use compressed air in short bursts while pressing the key. On a mechanical keyboard, pull the keycap with a puller and look for debris; on a laptop, do not pull keycaps unless you know the hinge type, because they break easily.
If the key is dead after cleaning, on a mechanical board you can often replace the switch. On a membrane or laptop keyboard, a single dead key usually means a new keyboard.
7. Spills
If liquid got in, unplug immediately, do not test it repeatedly, and let it dry for at least 48 hours upside down. Testing a wet keyboard is how a spill becomes permanent damage. Sugar drinks are worse than water because the residue keeps conducting and corroding.
When to replace instead of repair
Replace when several keys fail across different areas, when a laptop keyboard's ribbon connector is damaged, or when the same key fails again within weeks of a repair. For a cheap membrane keyboard, the economics are obvious. For an expensive mechanical board, a switch swap or a PCB repair is usually worth it.