Skip to content

Keyboard not working? How to find the cause

Keyboard not working, or only some keys? Test every key first, then check settings on Windows, macOS, ChromeOS and Linux before you blame the hardware.

7 min read

When a keyboard is not working, the cause is one of three things: a setting or software fault, a bad connection, or a hardware fault in the keys themselves. To find out which, test every key first, then work through software before hardware, because software faults cost nothing to fix.

The steps below apply to desktop and laptop keyboards on Windows, macOS, ChromeOS and Linux. Menu names are the ones in current versions and may differ a little on older systems.

Step 1: test every key

Open the keyboard tester and press each key once, row by row. Each key lights up when the browser receives it. Include the modifier keys on both sides, the function row and the number pad.

If the keyboard is completely dead, use the on-screen keyboard to get around while you diagnose. On Windows, press the Windows key, Ctrl and O together, or open it from the accessibility settings with the mouse. On a Mac, use the Keyboard Viewer. On a Chromebook, Google's Diagnostics app (Settings, About ChromeOS, Diagnostics) has its own keyboard test.

What you see tells you where to look next.

What the tester shows Likely cause Go to
No key lights up Connection, power, or a system setting Step 2
Keys light up, but only after a long press A slow keys or filter keys setting Step 3
Keys light up, but type the wrong characters Wrong keyboard layout selected Step 3
Number pad keys move the pointer Mouse Keys is on Step 3
The same few keys never light up Dirt, liquid or a worn switch Step 4
A key stays lit after release, or repeats A stuck key Step 4
Keys work alone but not in certain combinations Key rollover limit See below

Keys that fail only when pressed together are usually not broken. Many keyboards cannot register every combination, which is explained in key rollover and ghosting.

Step 2: rule out the connection

  1. Restart the computer. A restart clears a hung driver or a stuck setting, and it is the first step in Google's own list for Chromebooks.
  2. Reseat a wired keyboard. Unplug it and plug it back in, fully. Then try a different port.
  3. Check a wireless keyboard. Make sure it is switched on and charged, and that Bluetooth is on. Disconnect it and connect it again.
  4. Swap one thing at a time. Try the keyboard on a second computer, and a second keyboard on the first computer. If the keyboard fails everywhere, the keyboard is at fault. If any keyboard fails on this computer, the computer or its settings are at fault.
  5. On a laptop, connect the charger. Apple notes that a Mac laptop may be showing a low battery alert that you cannot see, and will not respond to keys until it has power.

Step 3: software causes of a keyboard not working

If the keyboard has power and a connection, and a second keyboard misbehaves in the same way, look at the system.

Accessibility settings that change how keys behave

These features help people who find it hard to hold or release keys. They can also be switched on by accident, often by a shortcut.

System Setting What it does Where to turn it off
Windows Filter Keys Ignores brief or repeated keystrokes. Holding the right Shift key for eight seconds toggles it. Settings, Accessibility, Keyboard
Windows Sticky Keys Lets you press modifier keys one at a time. Pressing Shift five times toggles it. Settings, Accessibility, Keyboard
Windows Mouse Keys Moves the pointer with the number pad. Left Alt, left Shift and Num Lock toggle it. Settings, Accessibility
macOS Slow Keys A key must be held longer than usual before it counts. System Settings, Accessibility, Keyboard
macOS Mouse Keys Keys move the pointer instead of typing. System Settings, Accessibility, Pointer Control

On a Mac, pressing Option, Command and F5 opens a panel that lists these features so you can switch them off in one place. Linux desktops have the same kinds of features, usually under Accessibility or Universal Access in the settings, and ChromeOS lists its own under Accessibility.

The wrong keyboard layout

If keys work but print different characters from the ones on the keycaps, the system is set to a layout that does not match the keyboard. A French layout on a US keyboard, for instance, swaps A with Q. Check the input language or keyboard layout in your system's language settings. On a Mac, Apple suggests turning on the Input menu in the menu bar (System Settings, Keyboard, Text Input, Edit) and choosing the correct layout there.

Drivers and accounts

On Windows, reinstall the keyboard driver. Microsoft's steps are:

  1. Right-click the Start menu and select Device Manager.
  2. Expand Keyboards and find your keyboard.
  3. Right-click it, select Uninstall device, and confirm.
  4. Restart. Windows tries to reinstall the driver when it starts.

On a Chromebook, Google's steps are to browse as a guest and test the keys there. If they work as a guest, remove the account that has the problem and add it again. If they do not, do a hard reset of the hardware, and reset to factory settings only as a last step, because that erases local files. A Chromebook managed by a school or employer has to go to its administrator.

On any system, a second user account or a guest session is a quick way to separate a setting from a fault. If the keys work in a fresh account, the cause is in your own account's settings or software.

If one program ignores the keyboard and the rest do not, the keyboard is fine. Look at that program's shortcuts and settings.

Step 4: hardware causes

By now you know the fault follows the keyboard. The pattern of dead keys narrows it down.

Some keys not working

One or a few dead keys, scattered around the board, usually mean something under the keycap: crumbs, dust, dried liquid, or a switch that has worn out. Switch the keyboard off or unplug it, turn it upside down and shake it gently, then blow air between the keys. Test again in the keyboard tester.

A key that stays lit in the tester, or types by itself, is being held down mechanically. Sticky residue from a spilled drink is the usual reason.

A group of dead keys that sit in a line or a cluster is a different fault. Keys are wired in a grid of rows and columns, so one broken trace or a loose internal cable can take out several keys at once. Cleaning will not fix that.

A laptop keyboard not working

Plug in an external keyboard. If it works, the computer is fine and the built-in keyboard, or the cable that joins it to the main board, has failed. An external keyboard is also a complete workaround while you decide what to do.

After a spill, switch the laptop off and disconnect the power before anything else. Liquid damage can spread beyond the keyboard, so this is a case for a repair shop, not for more testing.

Repair or replace

For a desktop keyboard with hardware damage, replacement is usually the practical answer. For a laptop, the choice is a repair or a permanent external keyboard. If the device is under warranty, contact the maker before you open it: Apple and Google both end their own checklists by sending you to service.

Check the fix

After each change, run the tester again and press every key. When all of them light up, try a minute of real typing in the typing test or on the online typewriter, because a key that registers once can still miss when you type at speed.

Sources

Questions people ask

Why is my keyboard not working?
The cause is a setting or software fault, a bad connection, or a hardware fault in the keys. Test every key first. If the fault changes when you restart, use another account or plug in a second keyboard, it is software or the connection. If the same keys stay dead everywhere, it is hardware.
Why are only some keys not working?
A few dead keys usually mean dirt under the keys, liquid damage or worn switches, and a second keyboard will tell you whether the first one is at fault. Check the settings too: on a Mac, Slow Keys and Mouse Keys can make keys appear dead, and a wrong keyboard layout makes keys type the wrong characters.
How do I test whether every key works?
Open a keyboard tester in your browser and press each key once. A key that lights up is reaching the computer. A key that never lights up is not sending a signal, and a key that stays lit after you let go is stuck.
What do I do if my laptop keyboard is not working?
Restart, then plug in an external keyboard. If the external one works, the fault is in the built-in keyboard or its settings, not in the whole computer. On a Mac laptop with no response at all, connect the charger: Apple notes that a low battery alert you cannot see can be the cause.
Which Windows settings can stop keys from working?
Filter Keys tells Windows to ignore brief or repeated keystrokes, and holding the right Shift key for eight seconds switches it on. Sticky Keys, switched on by pressing Shift five times, changes how modifier keys behave. Both are under Settings, Accessibility, Keyboard.