When a laptop keyboard stops responding, types the wrong characters or only half works, the cause is often a setting, a driver or a bit of dirt rather than broken hardware. Work through the checks below in order: the quickest ones come first.
Start with these quick checks
- Restart the laptop. A restart clears many temporary glitches, and Engadget recommends it as the first thing to try when a MacBook keyboard stops responding.1
- Try another keyboard. Plug in a USB keyboard or connect a Bluetooth one. If that works, the problem is the built-in keyboard rather than the whole computer. Apple suggests trying a different keyboard to narrow the problem down.1,2
- Check the battery. On a Mac, Apple notes that a low-battery alert can be hidden from view; connect the power adapter or an external keyboard to see it.2
- Disconnect spare keyboards. Apple's technician guide for the MacBook Neo says a paired Bluetooth keyboard may override the built-in one, so unpair any you are not using.3
Type without a keyboard while you fix it
Some fixes involve typing into a search box, so it helps to bring up an on-screen keyboard first.
- Windows 11 and 10: select Start > Settings > Accessibility > Keyboard and turn on On-Screen Keyboard. At the sign-in screen, select the Accessibility button in the lower-right corner, then On-Screen Keyboard.4
- Mac: Apple suggests using the Keyboard Viewer to click keys with the mouse or trackpad, and Engadget points to the Accessibility Keyboard under System Settings > Accessibility > Keyboard.1,2
Windows: turn off Filter Keys
Filter Keys is a Windows accessibility feature that ignores or slows down brief and repeated keystrokes. It helps people with tremors, but it can make a keyboard seem broken if it is switched on by accident.5 It can be turned on by holding the right Shift key for about eight seconds and then confirming a prompt, which is easy to do without noticing.5,6
Huawei's support guide for Windows 11 laptops gives these steps to turn it off:6
Windows: reinstall the keyboard driver
If the built-in keyboard does nothing at all but a USB keyboard works, a common fix suggested on Microsoft's community forum is to reinstall the keyboard driver.7
Press Windows key + R (use the on-screen keyboard or a USB keyboard if needed), type devmgmt.msc and press Enter to open Device Manager.7
Expand the Keyboards section.7
Right-click your keyboard and choose Uninstall device.7
Restart the laptop. Windows reinstalls the driver automatically when it starts up.7
If the keyboard isn't listed at all, check your laptop maker's website for its latest keyboard driver. If that doesn't help, the forum advice is to take the laptop to a service centre.7
Mac: check the accessibility settings
Apple says that if some keys don't work, an accessibility option may be switched on.2
Choose Apple menu > System Settings > Accessibility > Keyboard and make sure Slow Keys is off. With Slow Keys on, a key has to be held down longer before it registers.2
In the same section, Engadget suggests making sure Sticky Keys is off too.1
Go to Accessibility > Pointer Control and make sure Mouse Keys is off. You can also press Option-Command-F5 and deselect Mouse Keys in the panel that appears.2
Apple's MacBook Neo guide notes that when Mouse Keys is on, the keyboard can't be used to enter text, which is why it is worth checking.3 Caps Lock is also designed to need a slightly longer press, so it can seem unresponsive if you tap it quickly.2
Mac: typing the wrong characters?
If keys produce the wrong letters or symbols, the keyboard layout may have changed. Go to Apple menu > System Settings > Keyboard > Text Input > Edit, turn on Show Input menu in menu bar, then use that menu to check the correct layout is selected.2
Only a few keys not working? Clean the keyboard
If one or two keys fail while the rest work, dirt or crumbs under the keys are a likely cause.1 Engadget suggests holding a MacBook at about a 75-degree angle and using compressed air, then rotating it and repeating.1 Apple's own troubleshooting guide for technicians also lists cleaning as an early step when a key is unresponsive or feels different.3
Don't prise the keys off
Engadget warns that removing keycaps yourself can cause permanent damage. Apple's technician guide says a keycap that has been removed must be replaced with a new one, and Apple warns that repairs by untrained people or with non-genuine parts may affect a device's safety and function.1,2,3
When to get help
If a drink has been spilled on the laptop, or the built-in keyboard still doesn't work after these checks while an external keyboard works fine, the fault is probably in the hardware. Apple's repair guidance starts by inspecting for liquid damage, and the next steps involve opening the case, which is a job for a trained technician.3 Contact Apple or an Apple Authorised Service Provider for a Mac, or the manufacturer of a Windows laptop.2
If other parts of your laptop are acting up too, see our guides to Bluetooth not connecting, a microphone that isn't working and a laptop that won't turn on. If the whole screen has frozen rather than just the keyboard, try forcing the app to quit.
Common questions
Why does only the Caps Lock key seem broken on my Mac?
Apple builds in a short delay so you don't turn on Caps Lock by accident. Hold the key a little longer and the indicator light should come on.2
My keyboard works in the BIOS or startup screen but not in Windows. What does that mean?
If keys work before Windows loads, the keyboard hardware is probably fine and the problem is more likely to be a setting or driver in Windows, so start with Filter Keys and the driver steps above. One answer on Microsoft's forum reports exactly this pattern, and a reinstall of the driver is the usual first suggestion there.7
