What to do when a keyboard key stops working
A stuck or broken keyboard key usually falls into one of three problems: the key cap has popped off, the key registers only sometimes or not at all, or the key sticks and requires extra force to press. Most of these you can fix yourself in under ten minutes without tools. The fix depends on what went wrong, and knowing which problem you have tells you exactly what to try first.
Start by testing the key. Press it several times and listen. If it moves freely but nothing appears on screen, the problem is underneath the key cap. If it feels stuck or sluggish, debris is likely trapped under it. If the key cap is visibly loose or missing, you need to reseat or replace it.
Key Takeaways
- A key cap that has popped off can usually be reseated by hand by aligning the stem with the switch and pressing straight down until it clicks.
- Sticky keys often respond to cleaning with isopropyl alcohol and a cotton swab, applied around the edges where the key cap meets the switch.
- Keys that don't register may need the switch itself cleaned, which requires removing the key cap and using a cotton swab dampened with isopropyl alcohol to wipe the switch stem.
- Mechanical keyboards allow you to swap out individual switches, while membrane and scissor-switch keyboards usually cannot be repaired beyond cleaning.
- If cleaning and reseating do not work, the switch itself has failed and the keyboard will need professional repair or replacement.
Reseating a key cap that has popped off
If the key cap is sitting loose or has fallen off entirely, it usually snaps back on. Look at the underside of the key cap. You will see a stem — a small plastic post or cross-shaped connector. On the keyboard, directly under where the key was, you will see a matching switch with a stem sticking up.
Align the key cap stem with the switch stem and press straight down. You should feel or hear a click as the cap seats. Press the key several times to confirm it moves freely and registers. If it does not click or feels loose after pressing, try rotating the cap slightly — some keys are directional and only seat in one orientation.
If the key cap is cracked or the stem is broken, you will need a replacement cap. Mechanical keyboards use standard switch types (Cherry MX, Gateron, or Outemu are common), and replacement caps are inexpensive and widely available online. Membrane and scissor-switch keyboards use proprietary caps, and finding an exact match is harder — you may need to contact the keyboard manufacturer or replace the entire keyboard.
Cleaning a sticky key
Sticky keys usually respond to cleaning. Dust, food particles, and dried liquid accumulate around the edges where the key cap meets the switch. You do not need to remove the key cap to start.
Dampen a cotton swab with isopropyl alcohol (70 percent concentration works well). Gently work the swab around the edges of the key cap, pressing slightly so the alcohol seeps down the sides. Work all four edges. Press the key repeatedly while you do this — the motion helps loosen trapped debris. Let the alcohol evaporate for a minute, then test the key.
If the key is still sticky, remove the key cap by gently prying it up with a flat tool like a butter knife or plastic spoon. Work slowly and evenly — pry one corner slightly, then the next, rather than yanking one side. Once the cap is off, use a fresh cotton swab dampened with isopropyl alcohol to clean the switch stem itself. Wipe the stem and the inside walls of the switch. Let it dry for two minutes, reseat the cap, and test.
Fixing a key that does not register or registers intermittently
A key that does not produce any character, or produces one only after multiple presses, usually has a dirty switch contact. This is different from a sticky key — the key moves normally, but the electrical signal does not reach the computer.
Remove the key cap as described above. Look at the switch stem. Use a cotton swab dampened with isopropyl alcohol to clean the stem thoroughly, wiping up and down and around all sides. Also clean the inside walls of the switch housing. The goal is to remove any dust or oxidation that might prevent electrical contact.
Reseat the key cap and test. If the key now registers, you are done. If it still does not work after cleaning, the switch itself has failed — the internal contacts are worn or damaged. At this point, the keyboard cannot be repaired without replacing the switch.
When to replace the switch instead of the keyboard
If you have a mechanical keyboard, you can replace a failed switch without replacing the entire keyboard. Mechanical switches are designed to be swapped out. Remove the key cap, then use a switch puller (a small tool that came with the keyboard, or available online for a few dollars) to lift the switch straight up and out of its socket. Insert a new switch of the same type, press down until it clicks, and reseat the key cap.
If you have a membrane keyboard or scissor-switch keyboard (the flat, low-profile type found on most laptops and budget keyboards), the switches are soldered to the circuit board and cannot be replaced without specialized equipment. If cleaning does not fix the problem, the keyboard will need to be replaced.
When to stop and replace the keyboard
If you have cleaned the key and switch, reseated the cap, and the key still does not work, the switch has failed. You have reached the limit of what you can fix at home. A replacement keyboard costs between thirty and one hundred fifty dollars depending on the type, and installation is straightforward unplugging the old one and plugging in the new one.
If multiple keys are failing, or if the keyboard has other electrical problems, replacement is also the practical choice. Repairing more than one or two keys usually costs more in time and materials than buying a new keyboard.
Tools and materials you actually need
You need very little. Isopropyl alcohol (70 percent) is the only chemical — it evaporates quickly and does not leave residue. Cotton swabs are standard. A flat tool like a butter knife or old credit card helps pry off key caps without damage. If you have a mechanical keyboard and want to replace a switch, a switch puller costs a few dollars, though you can carefully pry a switch out with a flat tool if you are gentle.
Do not use water, vinegar, or household cleaners. Water can seep into the keyboard and cause corrosion. Vinegar leaves a residue. Household cleaners can damage plastic or leave conductive residue that interferes with the electrical contacts.
Frequently Asked Questions
Can I use compressed air to clean a keyboard key?
Compressed air can blow out loose dust, but it will not dissolve sticky residue or dried liquid. If the key is sticky, isopropyl alcohol is more effective. Compressed air alone is worth trying first if you want to avoid opening the keyboard, but expect to follow up with alcohol if stickiness remains.
What if I lose the key cap?
For mechanical keyboards, replacement caps are inexpensive and available online — search for your switch type plus "keycap". For membrane or scissor-switch keyboards, finding an exact match is difficult. Contact the keyboard manufacturer to ask about replacement caps, or plan to replace the keyboard.
Is it safe to use my keyboard while one key is broken?
Yes, as long as you do not need that key. If the broken key is one you use often, you will notice the inconvenience quickly. If it is a rarely used key like Scroll Lock or a number pad key, you can keep using the keyboard indefinitely.
How do I know if my keyboard is mechanical or membrane?
Mechanical keyboards have individual switches you can see under each key cap — they look like small plastic or metal boxes. Membrane keyboards are flat and low-profile, with no visible switches. Mechanical keyboards are usually heavier and more expensive. If you are unsure, check the product name or manual, or search the model number online.
Can I fix a key that fell off a laptop keyboard?
Laptop key caps can usually be reseated the same way as desktop keyboards, but laptop switches are more fragile. Align the cap carefully and press straight down. If the cap does not seat or the key still does not work, stop — laptop keyboards are difficult to repair and often require professional service.