Keyboard Test
English

Keyboard Keys Not Working: How to Fix Them

When some keys stop responding, the test on this page tells you in a minute whether the fault is in the keyboard or in the computer. Then work through the fixes below, from Windows and macOS settings to cleaning, cables and replacement.

Before you change any setting or pull off a keycap, use the keyboard test at the bottom of this page: press the keys that are giving you trouble and see whether they light up. A key that registers in the browser is physically fine and the cause is software, a layout or the program you were in. A key that stays dark, especially together with its whole row, is hardware.

That check decides which half of this guide you need: the operating system layer first, then the keyboard itself.

Step one: is it the keyboard or the computer?

Scroll down, click on the page and press each failing key a few times. Then compare what you see with this table.

Result in the testWhat it tells youWhere to look
Key turns amber then greenThe keyboard sends the key. The computer is ignoring it or doing something else with itSoftware section below
Key turns green but types the wrong characterHardware fine; language layout, Num Lock or a remapping toolSoftware section, layout and Num Lock
Key never changes colourNo signal reaches the computerHardware section, starting with cleaning
Key stays amber after releaseThe switch is physically stuck, or its release never arrivedHardware section, cleaning and keycap removal
Key turns red with chatter in the logThe switch bounces and sends a double pressHardware section, contacts
Whole row or column darkA matrix line is brokenHardware section, dead rows
Keys drop out at random on a wireless keyboardWeak link rather than bad keysHardware section, receiver and batteries

If you can, plug the keyboard into a second computer, or a second keyboard into this one, and run the test again. A key that fails on two computers is a hardware fault beyond doubt. A key that fails on one computer with two keyboards is a software fault beyond doubt. On a laptop, any USB keyboard works for this comparison, and the laptop keyboard test has a layout that matches a notebook.

Software and operating system fixes

Work through these in order. Each takes under a minute, and together they cover almost every case where a key tests fine but fails elsewhere.

Windows: Filter Keys and Sticky Keys

Filter Keys tells Windows to ignore short or repeated presses, and it can be switched on by accident by holding the right Shift key for eight seconds. The symptom is keys that only work when pressed slowly and firmly. Open Settings, then Accessibility, then Keyboard, and turn Filter Keys off. Sticky Keys, which is toggled by pressing Shift five times, makes modifiers latch and can make Shift, Ctrl and Alt seem broken. Turn it off on the same screen.

Windows: language layout

If keys type but produce the wrong characters, the layout is wrong: the at sign and the quotation mark swap between US and UK layouts, Y and Z swap on a German layout, and an AZERTY layout moves the whole top row. Look at the language indicator at the right end of the taskbar, and press the Windows key and the space bar to cycle through the installed layouts. Remove layouts you do not use so the shortcut cannot switch to them by accident.

Num Lock and the embedded number pad

On a full-size keyboard, Num Lock off turns the number pad into arrow and navigation keys. On many laptops, Num Lock on turns U, I, O, J, K, L and M into a number pad, so the letters type digits. Press Num Lock, or Fn and Num Lock on a laptop, and try again. The keypad test shows the current Num Lock state and which code each pad key is sending.

Windows: reinstall the keyboard driver

A damaged driver can drop keys or ignore the whole keyboard. Open Device Manager, expand Keyboards, right-click the keyboard and choose Uninstall device, then restart. Windows reinstalls the standard driver on boot. For a gaming keyboard with its own software, also check that no profile has remapped or disabled the key, and that a game mode has not turned off the Windows key.

macOS: Slow Keys, Sticky Keys and input source

macOS has the same accessibility features under System Settings, Accessibility, Keyboard. Slow Keys adds a delay before a press is accepted and makes quick typing drop letters; Sticky Keys latches modifiers. Turn both off. If characters are wrong, check the input source in the menu bar and under Keyboard, Input Sources. The Mac keyboard test explains which Mac keys never reach a browser and how to check them another way.

One program only

If a key works everywhere except one application, the application has bound it. Browsers take F5, F11 and F12, and games bind almost everything. Look in that program's keyboard settings and reset them to default before touching the hardware.

Hardware fixes

Unplug the keyboard, or power the laptop off, before any cleaning that involves liquid or pulling keycaps.

Cleaning a key that does not register

Dust, crumbs and hair collect under keycaps and stop the switch bottoming out. Turn the keyboard upside down and tap it, then blow compressed air into the gaps around the failing key in short bursts. On a mechanical keyboard, pull the keycap with a wire keycap puller and blow directly into the switch. On a membrane or laptop keyboard, work around the edge of the key without lifting it unless you know how its mechanism comes off.

A dead key: the contact under the cap never closes, so no signal leaves the keyboard and the diagram stays dark.

For a sticky key with residue around it, use a cotton swab lightly wet with isopropyl alcohol on the keycap edges and the surrounding plate. Do not pour anything onto the keyboard. Let it dry, then run the test again on that key.

Taking a keycap off

  • Mechanical keyboard. Hook a wire puller under two opposite corners and pull straight up. Wide keys like Space and Shift have stabilisers; lift gently and evenly.
  • Membrane desktop keyboard. Most caps pull straight up with a plastic puller or a flat tool under one edge. The rubber dome underneath should not be removed.
  • Laptop. Scissor-switch caps clip onto a plastic X. Lift from the top edge with a thin plastic tool and let it hinge away from you. If the X comes with it, note how it sat; whether a replacement cap and clip are sold separately depends on the laptop model. Pulling straight up is how the clip breaks.

Contacts, chatter and stuck switches

A mechanical switch that sends two presses for one, which the test flags in red with chatter in the log, has oxidised or worn contacts. Dust it out with air, then try a few drops of electrical contact cleaner into the switch and work the key a hundred times. If that fails on a hot-swap board, replace the switch. On a soldered board, replacing a switch means desoldering, which is a job for someone with the tools.

Chatter: a worn switch makes a second, tiny contact within 25 ms of the release. The keyboard reports two presses; the test marks the key red.

A membrane key that chatters or stays stuck is usually a worn dome or dirt under it. Cleaning sometimes helps; otherwise a replacement keyboard is the realistic fix.

Cable, port and receiver

A wired keyboard that drops keys or disconnects as you move the cable has a damaged cable or plug. Try a different USB port on the computer itself rather than a hub, and if the cable is detachable, swap it. For a wireless keyboard with a 2.4 GHz receiver, plug the receiver into a port on the front or on a short extension cable away from USB 3 ports and external drives, which produce interference in that band. For Bluetooth, remove the keyboard from the device list and pair it again.

Batteries

A wireless keyboard on low batteries drops presses before it dies completely, and the dropped presses are random rather than tied to one key. Charge or replace the batteries before concluding that a key is faulty.

A whole row or column not working

Keyboards do not wire each key to the controller individually. They use a matrix: a grid of row and column lines, with each key sitting at an intersection. The controller scans the lines and works out which intersection closed. If one row line breaks, every key on it disappears at once, even though every switch is fine. A row or column that goes dark together in the test is that pattern.

Ghosting: three pressed keys on the corners of a rectangle let current reach a fourth key nobody pressed.

On a desktop keyboard the break is usually a cracked trace on the membrane sheet or the circuit board, and on a laptop it is most often the ribbon cable between the keyboard and the motherboard, which can loosen from flex or heat or corrode after a spill. Reseating that cable fixes some laptops. Otherwise the keyboard, or on thin laptops the whole top case, is replaced as a unit. A single dead key is a cleaning job; a dead row is a repair.

Liquid spills

Act immediately. Unplug a desktop keyboard; on a laptop, hold the power button until it is off and disconnect the charger. Turn it upside down on a towel to drain, keep it that way, and leave it for at least 48 hours in a warm, dry room. Do not use a hair dryer or an oven; heat warps the plastic and bakes residue onto the contacts.

Plain water generally leaves a keyboard working once it is dry. Coffee, soft drinks and anything with sugar or milk leave a film that conducts and corrodes, so keys keep failing or start chattering weeks later. A mechanical keyboard can be opened and its board cleaned with isopropyl alcohol and a soft brush; a membrane keyboard rarely survives a sugary spill; a laptop that had liquid reach the motherboard needs professional cleaning before it is powered on again. After drying, run the test and note every key that is still dark, so you can tell a repairer exactly what failed.

Repair, replace or claim the warranty?

Keyboard typeSingle dead or chattering keyDead row or spill damage
Mechanical, hot-swapReplace the switch yourselfOpen and clean the board, or replace the board
Mechanical, solderedDesolder and replace, or live with itUsually replace the keyboard
Membrane desktopClean; replace the keyboard if that failsReplace the keyboard
Laptop, keyboard as a separate partReplace the keycap and clip if sold separately, otherwise the keyboardReplace the keyboard
Laptop, keyboard built into the top caseKeycap and clip if availableTop-case replacement, get a quote first

Before any of that, check the warranty. A key that fails on its own during the warranty period is normally treated as a defect; spills, drops and wear are normally excluded. Record which keys fail and in what way with the test, note the date, and contact the seller before opening anything, because a visibly opened keyboard or laptop gives them a reason to refuse. Some manufacturers have run extended repair programmes for specific keyboard designs, as Apple did for MacBooks sold from 2015 to 2019, so a search for your model and the word keyboard is worth a minute.

Related tests

The keyboard test on the home page checks every key on a full desktop layout. If keys register but the keyboard feels slow, the keyboard latency test measures reaction time and auto-repeat so you can compare it against another keyboard. If keys drop out only when you press several at once, that is not a fault in the keys but a rollover limit, and the keyboard ghosting test shows which combinations fail.

Tested0/104
Presses0
Held now0
Max at once0
Issues0
HeldWorksChatter / stuck
  • Press any key to start. The last presses show up here.

Frequently asked questions

How do I know if my keyboard is broken or it is a software problem?

Run the keyboard test on this page and press the keys that fail. A key that lights up in the browser is physically fine, so the fault is a setting, a layout or the program you were using. A key that stays dark here, and stays dark after you plug the keyboard into another computer, is a hardware fault. A whole row failing at once is almost always hardware.

Why do some keys on my keyboard not work?

The usual causes, in order of how often they turn up, are debris or a worn contact under one key, Filter Keys or a similar accessibility setting ignoring short presses, a wrong language layout typing different characters, a weak battery or receiver on a wireless keyboard, and a broken line in the keyboard matrix after a spill. The test narrows it down to one of these in a few presses.

How do I fix keyboard keys not working on Windows?

Open Settings, Accessibility, Keyboard and turn off Filter Keys and Sticky Keys. Check the language layout in the taskbar and press the Windows key and the space bar to switch if it is wrong. Then open Device Manager, expand Keyboards, uninstall the device and restart so Windows reinstalls the driver. If the keys still fail in the test afterwards, the keyboard itself needs cleaning or repair.

Can a keyboard be fixed after a spill?

Often, if you act quickly. Unplug it or power the laptop off at once, turn it upside down to drain, and let it dry for at least two days without heat. Water usually leaves no damage once dry; sugary or milky drinks leave a residue that keeps shorting keys and needs cleaning with isopropyl alcohol. Run the test after drying to see which keys came back.

What does it mean when a whole row of keys stops working?

A row or column failing together means one shared line in the keyboard's matrix circuit is broken, so every key on that line is unreachable. Each key is fine; the trace, the ribbon cable or the controller is the fault. On a laptop, reseating the ribbon cable sometimes fixes it; otherwise the keyboard assembly is replaced as a unit.

Is it worth repairing a keyboard, or should I replace it?

A mechanical keyboard with hot-swap switches is worth fixing, because a single switch costs little and takes a minute to swap. A membrane keyboard with a dead row is cheaper to replace than to repair. A laptop keyboard is usually a replaceable part, and the decision comes down to the quote: a plug-in keyboard part is cheap, a top-case replacement on a thin laptop is not.

Will a warranty cover keys that stop working?

A key that fails on its own within the warranty period is normally covered as a defect. Liquid damage, physical damage and worn-off legends usually are not. Note which keys fail and how, using the test, before you contact the seller, and do not open the keyboard or laptop first, because that can void the claim.

More keyboard tests

Each test below checks one part of your keyboard in more detail.