How to Fix Keyboard Keys That Are Not Working

Quick Answer
Press the problem key in a browser key test. If it never registers, check the cable, port, battery and pairing, then clean under the key with the keyboard unplugged. If it registers but apps ignore it, turn off Filter Keys (Windows) or Slow Keys (Mac) and check the keyboard layout and Fn lock. If it types twice, the switch is chattering and needs cleaning or replacement.
On this page
Key Takeaways
- Test first: a key test shows whether the key sends a signal at all, which separates hardware problems from software ones.
- On Windows, holding the right Shift key for eight seconds toggles Filter Keys, which can make keys feel dead or slow.
- Reconnect, change the port or battery, and re-pair wireless keyboards before you assume the keyboard is faulty.
- Clean with the keyboard unplugged and switched off, use short bursts of compressed air, and never pour liquid onto it.
- A key that types twice (chatter) usually points to a dirty or worn switch; if cleaning does not help, repair or replace.
How Do You Find Out Why a Key Is Not Working?
Start with a test, not a fix. Open our online keyboard test, click the virtual keyboard so it captures key presses, and press the problem key a few times. The result points you to one of three causes.
- The key never turns green. The computer is not receiving a signal from that key. The cause is the connection, the battery, debris or the switch itself. A key that stays blue after you let go is stuck down, often because something sticky is under the keycap.
- The key turns green with an orange outline. The test saw a second press within 40 milliseconds of the release. Nobody types that fast on purpose, so this is switch chatter, the cause of double letters.
- The key turns green normally, but your apps ignore it or type the wrong character. The hardware works. Look at settings, the layout and the program you are typing in.
The test also shows the Code of each press. That value names the physical key, based only on its position on the board, and it does not change with your language or layout [8]. So if the correct code appears but the wrong character lands in your document, the layout is the problem, not the key.
A few keys are a special case. The Fn key on laptops is typically handled inside the keyboard and does not send a code of its own, so no browser test can light it up. The Windows key and Print Screen can also be captured by the operating system first. A key that only fails in a browser test is not proof of a broken key; check it in another program.
Which Settings Can Make Keys Stop Working?
If the key tester shows the key registering, a setting is the most likely cause. These are the usual suspects.
Filter Keys, Sticky Keys and Slow Keys
Filter Keys is a Windows accessibility feature that sets the keyboard to ignore brief or repeated keystrokes. You can switch it off in Settings > Accessibility > Keyboard, or press Windows logo key + U to open the Accessibility settings [1]. Holding the right Shift key for eight seconds turns Filter Keys on or off, and pressing Shift five times toggles Sticky Keys [2]. Anyone who holds Shift down for a long time, for example to run in a game, can trigger it by accident.
On a Mac, the equivalent is Slow Keys. Apple says that when Slow Keys is on, a key has to be held longer before it registers, and suggests turning it off in System Settings > Accessibility > Keyboard. Mouse Keys, in Accessibility > Pointer Control, can also change how keys behave [5].
The wrong keyboard layout
If Shift + 2 gives you a quotation mark instead of @, or Z and Y have swapped, the computer is using a different layout. On Windows, check the active language and keyboard under Time & Language. On a Mac, Apple suggests turning on "Show Input menu in menu bar" under System Settings > Keyboard > Text Input, then picking the right layout from that menu [5].
Fn lock, F Lock and Num Lock
When F1 to F12 change the volume instead of acting as function keys, or the other way round, a function lock is involved. On keyboards with an F Lock key, Microsoft explains that pressing it toggles between the standard commands and the alternate commands printed on the keys [4]. Many laptops do the same with an Fn + Esc or Fn + Caps Lock combination; check the maker's manual for yours. If only the number pad is dead, press Num Lock.
Also note two keys that are slow on purpose: on a Mac, Caps Lock and Media Eject have a slight delay to prevent accidental presses, so hold them a moment longer.
How Do You Fix Connection and Driver Problems?
When the keyboard tester shows no signal from any key, or keys drop out at random, work through the connection before blaming the keyboard.
- Wired keyboards: unplug the cable, wait a few seconds, and plug it into a different USB port, ideally one on the computer itself rather than a hub [3].
- Wireless keyboards: check that batteries are fresh or fully charged, and look for a reset button on the bottom. For Bluetooth, turn the keyboard off and on and re-pair it.
- Shared receivers: many keyboard and mouse sets use one USB receiver. If the mouse also stutters in the mouse test, the receiver, its port or interference is the suspect rather than the keyboard.
- Drivers and updates on Windows: open Device Manager, double-click the keyboard, and choose Update Driver on the Driver tab; then run Windows Update.
- Try another computer. Apple's advice works on any system: if the keyboard works on a different computer or port, the original computer or port needs attention; if a different keyboard works on your computer, the original keyboard needs service [5].
On a Mac laptop where no built-in key works at all, Apple notes that a low battery alert may be hidden; connect the charger or an external keyboard to see it.
How Do You Clean Under the Keys Safely?
Debris is the most common physical cause of a dead, sticky or double-typing key. Crumbs and dust sit between the keycap and the switch and stop the key from travelling far enough to make contact.
Before you clean anything, unplug a wired keyboard, remove user-replaceable batteries, switch the device off and wait a few seconds. Logitech also says never to submerge a keyboard, not to spray it directly, and not to let liquid drip or seep inside; spray a soft, lint-free cloth instead and avoid bleach, acetone and abrasives [7].
For a laptop keyboard, Apple's method is a good model: hold the notebook at a 75-degree angle, spray compressed air across the keys in a left-to-right motion, then turn the laptop onto its right side and its left side and repeat. Use the straw, keep its tip about half an inch from the keys, and keep the can upright [6].
On a desktop mechanical keyboard, you can go further. Pull the problem keycap straight up with a keycap puller (our keyboard cleaning kit guide covers the tools), blow or brush out the debris around the switch, and press the cap back on evenly. Larger keys such as the space bar and Shift often have metal stabilizer wires, so take a photo before removing them.
If you spilled a drink
Unplug or switch off the keyboard at once, turn it upside down so the liquid drains away from the circuit board, and let it dry completely before you reconnect it. Do not use a hair dryer or heater. Sugary drinks leave a sticky film that usually needs keycaps removed and the switches cleaned. For a laptop, shut it down and disconnect the charger; a spill inside a laptop is a job for the maker's service, not a home fix.
Why Does a Key Type Twice?
Double letters ("thhe", "keyy") come from switch chatter. A key switch is a mechanical contact, and when it is dirty or worn, it can briefly open and close again as you release it. Keyboard firmware filters out these tiny bounces (a technique called debounce), but a worn switch can bounce long enough to slip through as a second keystroke.
To confirm chatter, tap the suspect key slowly in the double-typing check on the keyboard test. An orange outline and a rising Double-typing counter mean the switch is bouncing. Then try these fixes in order:
- Clean the switch. Remove the keycap and blow out the debris around the stem. On many keyboards that alone stops the chatter.
- Update the firmware or raise debounce. Some mechanical keyboards let you adjust the debounce time in the maker's software. This hides the symptom rather than fixing the switch, so treat it as a stopgap.
- Replace the switch. Hot-swap boards let you pull a switch and push in a new one without soldering. On soldered boards, the switch has to be desoldered, or the keyboard goes back to the maker under warranty.
While the test is open, hold several keys at once and read the Most at once counter. It is not a fault, but if a game drops inputs when you hold several keys, a low number there explains it. Our membrane vs mechanical keyboard guide explains why rollover differs between keyboard types.
When Should You Repair or Replace the Keyboard?
If a key still fails the test after the settings, connection and cleaning steps, the hardware is at fault. At that point, your options depend on the keyboard type.
- Under warranty: contact the maker before you open anything, since disassembly can affect the warranty.
- Laptop keyboards: individual keys and the keyboard assembly are part of the laptop, so take it to the maker or an authorized service provider. Apple recommends service if a MacBook key still does not respond after cleaning.
- Mechanical keyboards: a single bad switch is usually worth replacing, especially on a hot-swap board.
- Membrane keyboards: the contacts sit on printed sheets, so a dead key or row after a spill usually means the whole keyboard needs replacing.
If you do replace it, our comparisons of mechanical keyboards and ergonomic keyboards explain what to look for in a new one.
While you wait for a repair, you can type with an on-screen keyboard: Windows has one in Accessibility settings, and macOS offers Keyboard Viewer.
Related gear
All-in-One Keyboard and Laptop Cleaning Kit
Check price on AmazonK&F Concept 20-in-1 Keyboard Cleaning Kit
Check price on AmazonWOLFBOX MF100 Electric Air Duster
Check price on Amazon
Frequently Asked Questions
Why did my keyboard suddenly stop typing?
The most common sudden causes are Filter Keys being switched on by holding the right Shift key for eight seconds, a wireless keyboard with a flat battery or lost pairing, and a loose cable or receiver. Run a keyboard test to see whether any key reaches the computer, then check Accessibility settings.
Why do some keys type the wrong character?
The keyboard layout has changed. The physical key is fine, but the computer maps it to a different character. Switch back to your usual layout in the language or input settings; on Windows, a shortcut such as Windows key + Space can switch layouts by accident.
Can I fix a keyboard after spilling water on it?
Often, yes, if you switch it off quickly, drain it upside down and let it dry completely before use. Sugary or sticky drinks are harder to recover from and usually need the keycaps removed and the switches cleaned. Laptops should go to the maker's service.
Is it safe to clean a keyboard with canned air?
Yes, if you unplug or switch off the keyboard first, keep the can upright and use the straw in short bursts. Never spray liquid directly onto the keys; dampen a lint-free cloth instead.
Our Take
We think the most useful habit here is testing before fixing. A minute in a key tester tells you whether you are dealing with a setting, a connection or a worn switch, and that saves people from cleaning a keyboard that only had Filter Keys switched on, or from buying a new one when a single switch is at fault. In our view, Windows' right-Shift shortcut for Filter Keys is the most underrated cause of "dead" keyboards. For physical problems, careful cleaning with the keyboard unplugged fixes a surprising share of sticky and double-typing keys. If a key still fails after that, repairing a mechanical switch is usually worthwhile, while a damaged membrane or laptop keyboard is a service or replacement decision.
Sources
- Make your mouse, keyboard, and other input devices easier to use. Microsoft.
- Windows keyboard shortcuts for accessibility. Microsoft.
- Mouse and keyboard problems in Windows. Microsoft.
- How do I use the Fn key/F Lock key/Alternate command keys?. Microsoft.
- If your Mac doesn't respond to key presses. Apple.
- How to clean the keyboard of your MacBook or MacBook Pro. Apple.
- Cleaning your Logitech device. Logitech.
- UI Events KeyboardEvent code Values. W3C.
Specs, firmware and availability change. We do not list prices; check the current price and the maker's specifications on the product page before you buy. Spotted an error? Tell us.





