Some keyboard keys not working: how to fix them
Dirt under the key is the most common cause. Press every key below, on the computer, to find the dead ones.
Find the keys that fail
On the computer that has the problem, press every key in the test at the top, one at a time. The keys of your keyboard still dark at the end are the ones to fix (a compact keyboard leaves part of the drawing dark). Test them again after each fix below.
A key that lights up but shows another name above the drawing works: the layout is wrong, see Keys typing the wrong characters, below. A key that fails only while you hold others is blocked: check it in the keyboard ghosting test.
The fixes, simplest first
- Dirt. Turn the keyboard over and tap it, then blow compressed air under the key. See how to clean a keyboard.
- Another port or computer. If the key works on another computer, the cause is a setting or an app on yours.
- Number pad. If the number pad moves the pointer or does nothing, press Num Lock. On Windows 11, also turn off Mouse keys in Settings, Accessibility, Mouse.
- Windows key. Gaming keyboards lock it for games. Press the key with a padlock or a game icon, often Fn + Windows key.
- Remapped keys. A key set to do something else in the keyboard's app or in Microsoft PowerToys does not type. Reset the profile or remove the remap.
- Driver. Right-click Start, Device Manager, Keyboards. Right-click the keyboard, Uninstall device, and restart.
- Mac. Turn off Slow Keys in System Settings, Accessibility, Keyboard, and Mouse Keys in Accessibility, Pointer Control.
Spacebar not working
The spacebar sits on a metal wire, the stabilizer, that keeps it level. On a mechanical keyboard, pull the spacebar straight up and check that both ends of the wire clip back into the keyboard, then clear the crumbs under it. On a laptop, do not pry it off: blow air under it instead. Tap it in the spacebar counter: every press should count once.
Keyboard keys sticking
A key that comes up slowly usually has a dried spill under it. On a mechanical keyboard, pull the keycap and clean around the switch with a cotton swab barely damp with isopropyl alcohol. Do not pour anything into the switch. If the switch itself stays slow, replace it.
Keyboard double typing or key chatter
A key that types twice for one press ("hhello") has a worn or dirty switch that bounces. Open a text box, tap the key 20 times, and count the letters to confirm it.
- Blow compressed air into the switch while you press it a few dozen times.
- Windows 11: Settings, Accessibility, Keyboard, Filter keys. Turn on Ignore unintended keystrokes (bounce keys) and leave Ignore quick keystrokes off, or every key will feel dead.
- A key that repeats when you hold it a little long is not chatter: set Repeat delay to long. Windows: type keyboard in Start, open the Keyboard control panel, Speed. Mac: System Settings, Keyboard, Delay until repeat.
- Raise the debounce time in your keyboard's app, or in its firmware if it runs QMK or VIA.
- On a hot-swap keyboard, pull the switch with a switch puller and plug in a new one, pins straight. A soldered switch needs the warranty or a repair shop.
Keys typing the wrong characters
Typing @ gives " or a key gives an accent: the keyboard layout is wrong. Windows 11: Settings, Time & language, Language & region. Open your language, Language options, and keep only the keyboard you own, such as US. Windows key + Space switches between layouts, often by accident. Mac: System Settings, Keyboard, Text Input, Input Sources, Edit.
When it is the hardware
A key dead on two computers, after cleaning, is a broken switch or a broken trace. On a mechanical keyboard, replace the switch. On a laptop, single keys often need a new keyboard: see laptop keyboard not working. Under warranty, ask for a replacement. If every key fails, read keyboard not working.
FAQ
Why are only some keys on my keyboard not working?
Dirt under the keys, a setting such as Num Lock or a game mode, a remapped key, or a worn switch. Find the dead keys with the test, then clean them first.
Why does my keyboard type two letters at once?
The switch bounces and sends a second press. Clean it with compressed air, turn on bounce keys alone in Filter keys, or replace the switch.
Why does my @ key type a quote mark?
Your keyboard is set to the UK layout instead of US, or the reverse. Remove the extra layout in Settings, Time & language, Language & region.
Can one key on a laptop be fixed?
Sometimes a new keycap and clip fixes it. If the key under it is dead, most laptops need a whole new keyboard.
Related tools
More guides
Add this tool to your site
Free for any website. Paste this code into an HTML block where the tool should appear.