Short answer
Restart the computer first, then test the keys below. What you see in the test tells you which fix to try.
Step 1: test which keys work
Test it now
Keyboard tester
Press every key once. A key that lights up has reached this browser. That rules out the keyboard and cable for that key, but not a fault that comes and goes, so press each key a few times.
Fixing it for a parent over the phone? See how to talk them through the test.
No keys work
Work down this list. Test again after each step.
1. Check the typing settings
Filter Keys (Windows) and Slow Keys (Mac) ignore quick presses, so a keyboard can look dead. Holding the right Shift key for 8 seconds can switch Filter Keys on or off, often by accident.
Windows
Open Settings Accessibility Keyboard and turn off Filter keys. On Windows 10 it is Settings Ease of Access Keyboard.
Mac
Open System Settings Accessibility Keyboard and turn off Slow Keys.
2. Check the connection
USB keyboard
- Unplug the keyboard, wait 10 seconds and plug it into another USB port.
- Plug it straight into the computer, not into a hub, dock or monitor. Fails only on the hub? See USB devices disconnecting from a hub.
- Try it on another computer. If it doesn’t work there either, the keyboard is probably faulty.
Wireless keyboard
- Put in new batteries, or charge it for 30 minutes. Low batteries often cause missed keys first.
- Check the on/off switch. If the keyboard has device buttons (1, 2, 3), press the one for this computer.
- With a USB receiver: plug it into another port, close to the keyboard. Cables and USB 3 devices next to the receiver can disturb the signal.
- With Bluetooth: check that Bluetooth is on. Then remove the keyboard from the Bluetooth list and pair it again.
Still dead? Reset the wireless keyboard. A Logitech keyboard has its own fixes.
Laptop keyboard
- Restart the laptop. If it doesn’t respond, hold the power button for 10 seconds.
- Plug in a USB keyboard (with an adapter if the laptop only has USB-C). If that one works, the problem is the laptop’s own keyboard.
- Some laptops can lock the keyboard. See the guide for Lenovo. Acer laptops have no keyboard lock.
Keys work but the light stays off? See how to light up a Lenovo keyboard.
3. Try the keyboard in the setup screen (Windows PCs)
This check helps tell Windows from the keyboard.
- Restart the computer.
- Press the setup key over and over as soon as the screen turns on. It is often F2, Del or F1. On HP, press Esc and then F10. Your maker’s support site names the key for your model.
- If the setup screen opens and the arrow keys move around in it, the keyboard works. Leave with Exit without saving, then go on to step 4.
If the setup screen doesn’t open, try again: it is easy to miss the moment, and wireless keyboards often don’t work this early. That alone doesn’t prove the keyboard is faulty.
4. Reinstall or roll back the driver (Windows)
- Right-click the Start button and choose Device Manager.
- Open Keyboards. If the problem started after an update, right-click your keyboard, choose Properties Driver Roll Back Driver (if it isn’t greyed out) and restart.
- Otherwise right-click the keyboard, choose Uninstall device, confirm, and restart. Windows normally installs the driver again by itself.
Some keys don’t work
Look at which keys stay dark in the keyboard tester.
A few keys here and there
Often: dirt under the keys
Turn the computer off and unplug the keyboard. Turn it upside down and tap it. Blow under the keys with compressed air, in short bursts. How to clean a keyboard has the full steps.
A whole row or column
A fault in the keyboard or its cable
Keys such as Q, A and Z fail together. Cleaning rarely helps. A separate keyboard needs replacing; a laptop keyboard needs a repair.
After a spill
- Turn the computer off at once and unplug the power.
- A separate keyboard: unplug it, take out its batteries and turn it upside down to drain.
- A laptop: turn it upside down on a towel, and only remove a battery if it comes out without tools.
- Let it dry for at least 24 hours. After sugary drinks or a big spill, take a laptop to a repair shop before you switch it on: liquid inside can cause corrosion later.
Keys type the wrong thing
The keys light up, so the keyboard sends them. The computer turns them into the wrong characters.
Wrong symbols or letters (you press @ and get ", or Y and Z are swapped): the computer uses another keyboard layout.
Windows
- Press Win Space to switch between your layouts. A list shows which one is active.
- To remove a layout you don’t use on Windows 11, open Settings Time & language Language & region, select ⋯ next to your language, then Language options.
- On Windows 10, open Settings Time & Language Language, select your language, then Options.
Mac
- Open System Settings Keyboard.
- Under Text Input, select Edit, then turn on Show Input menu in menu bar.
- Choose the right layout from the new menu at the top of the screen.
The number pad moves the cursor
The keys light up in the tester, but type no numbers. Press Num Lock once.
Letters type numbers
On some older laptops, U, I, O, J, K and L have small numbers on them. Their built-in number pad is on: press Num Lock or Fn Num Lock.
On a Mac, some letter keys move the pointer: Mouse Keys is on. Turn it off in System Settings Accessibility Pointer Control.
Keys need holding down
If a key only types when you hold it for a moment, Filter Keys (Windows) or Slow Keys (Mac) is on. Turn it off as shown in Check the typing settings.
Works here, not in an app
Every key lights up, so your keyboard reaches the browser. Look at the app before you change anything else.
- One app or game: close it and open it again. Then check its own key settings: games often have their own key bindings.
- F1 to F12 change the volume or brightness instead: on many laptops Fn Esc swaps them (look for a padlock on the Esc key). See how Fn lock works and which keys change the volume.
- Keys type twice: run the keyboard chatter test.
- Keys fail only when you press several at once: check with the ghosting test.
When it’s the hardware
It is most likely the keyboard itself when:
- it doesn’t work on a second computer, or
- a whole row or column of keys stays dark in the tester, or
- a USB keyboard works on the laptop but the laptop’s own keyboard doesn’t.
Not sure yet? The swap test shows if it’s the keyboard, the computer or the app.
A basic separate keyboard often costs less to replace than to repair. On many laptops, including MacBooks, the keyboard is part of the case under the palm rest, so the repair costs more. Check your warranty first on the maker’s support site. Until then, a USB keyboard works with most laptops.
Questions people ask
Why did my keyboard suddenly stop working?
Flat batteries, a dropped Bluetooth connection and Filter Keys turned on by holding Shift are common causes. Restart, then test the keys to see what’s left.
Why does my laptop keyboard not work but a USB keyboard does?
The laptop sees key presses, so the fault is probably in its own keyboard or the cable inside. Try the setup-screen check. If the keys don’t work there either, it needs a repair.
Can a Windows update break the keyboard?
An update can install a driver that doesn’t suit your keyboard. Roll back or reinstall the driver as shown above. If that doesn’t help, Microsoft explains how to uninstall an update under Settings Windows Update Update history (Windows 10: Update & Security first).
Does Fn lock turn off the whole keyboard?
No. Fn lock only changes what the top row of keys does (F1 or volume). It doesn’t stop letters from typing.