Keyboard keys not working? How to test and fix them

When a few keys stop working, the cause is usually dirt or a worn switch, a software setting, or the wrong keyboard layout. A quick test tells you which.

Open Keyboard Tester

1. Test every key

Open the keyboard tester and press each key. Keys that never light up aren't reaching the computer — a hardware or connection problem. Keys that light up but type the wrong character point to a layout setting. Keys flagged for chatter are registering twice.

2. Fix keys that don't register

  • Turn the keyboard upside down and tap it gently, or use short bursts of compressed air under the keys.
  • For a sticky key after a spill, unplug the keyboard (or shut down the laptop) before cleaning with a little isopropyl alcohol on a cotton swab.
  • External keyboards: try another USB port or cable, replace the batteries, or pair the Bluetooth connection again.
  • If a whole group of neighboring keys fails together, the internal cable or circuit is likely damaged — that's a repair job.

3. Keys type the wrong characters

  • Windows: Settings → Time & language → Language & region — check the keyboard layout matches your keyboard (for example US versus UK).
  • macOS: System Settings → Keyboard → Text Input — remove input sources you don't use.
  • Laptops: Num Lock can turn letters such as U, I and O into numbers on some models — turn Num Lock off.
  • Make sure Caps Lock or Fn Lock isn't switched on.

4. Keys lag, repeat or need a long press

  • Windows: turn off Filter Keys and Sticky Keys in Settings → Accessibility → Keyboard.
  • macOS: turn off Slow Keys in System Settings → Accessibility → Keyboard.
  • Windows: update or reinstall the keyboard driver in Device Manager.
  • A key that types twice on a single press has a worn switch — replace the switch or the keyboard.

Tools used in this guide

Related guides

Keyboard keys not working? How to test and fix them — FAQ

Usually debris under those keys or a failing switch. If neighboring keys fail together, the keyboard's internal connection may be damaged.