Keyboard keys not working? Find the cause, then fix it

First find out which keys fail, and whether they fail on another computer too. One dead key is usually dirt under it or a worn switch. A group of keys that stop together points to the keyboard's circuit or a spill. If every key is silent or slow, check a setting such as Filter Keys and the connection first. Keys that type the wrong character are a layout setting, not a fault.

Keyboard test

Keys share wires Broken Not detected Key the computer receives
A keyboard reads its keys through a grid of wires, with each key where a row crosses a column. When one wire or its joint breaks, every key on it stops at once. On the keycaps that group can be a row, a column or keys scattered across the board, because the wiring decides it, not the printed layout.

1. Find out which keys fail

  1. Open the keyboard test and press every key once. Keys that never light up are the ones the computer does not receive.
  2. Note the pattern: one key, a few neighbours, a whole row, keys scattered across the board, or every key.
  3. Try the keyboard on another computer, or another keyboard on this one. If the same keys fail everywhere, the keyboard is at fault; if they work elsewhere, look at this computer's settings and software.
  4. On a laptop, plug in a USB keyboard. If it works, the built-in keyboard is the problem.

2. Settings that make keys seem dead

Keys type the wrong characters

If Z and Y are swapped, letters come out as symbols, or accents appear where they should not, the keys work: the computer is using another keyboard layout. On Windows, the Windows key plus Space and left Alt plus Shift switch between installed layouts and languages, and both are easy to press by accident. Remove the layouts you do not use in Settings, Time and language, Language and region. On a Mac, check the input menu in the menu bar.

3. The connection and the driver

4. Dirt and stuck keys

After a spill

Unplug the keyboard or shut the laptop down at once, turn it upside down to drain, and let it dry completely before you switch it on again. Plain water often dries out without harm. Sugary drinks leave a sticky film that stops keys from registering and needs cleaning or a repair.

5. When it is the hardware

If the same keys still fail on every computer after cleaning, a switch, the circuit or the cable has failed. On a hot-swap mechanical keyboard you can pull out a dead switch and push in a new one; on other keyboards the switch has to be desoldered. A group of keys failing together usually means the circuit board or its ribbon cable, which is a repair or a new keyboard. Check the warranty first. On a laptop, a USB keyboard keeps you working until the repair.

When it is not a dead key

A key that types twice is chatter: see why a keyboard types double letters. Keys that fail only while you hold several others are a rollover limit: see keyboard ghosting explained.

Sources: Wikipedia, FilterKeys; Logitech, wireless products and USB 3.0 devices.