What causes keys to stick and what you can do about it
A sticky key usually means something is blocking the switch underneath from moving freely. The most common culprits are dust, dried liquid, or crumbs wedged under the keycap. You can often fix this yourself by cleaning around and under the key, and in many cases you won't need to remove the keycap at all. If cleaning doesn't work, the switch itself may be damaged, which means replacing either that one key or the whole keyboard depending on the keyboard type.
The fix depends on what kind of keyboard you have. Mechanical keyboards (the kind with individual switches you can see) are easier to work on because you can remove and clean individual keycaps. Laptop keyboards and flat membrane keyboards are trickier because the keycaps are harder to remove safely and the switches are more fragile underneath.
Key Takeaways
- Most sticky keys are caused by dust, crumbs, or dried liquid trapped under the keycap, and cleaning with compressed air or a damp cloth often fixes the problem.
- On a mechanical keyboard, you can remove the keycap with a keycap puller or small flathead screwdriver and clean the switch directly underneath.
- On a laptop or flat keyboard, avoid removing keycaps unless you are confident you can reinstall them, because the clips underneath are fragile.
- If a key still sticks after cleaning, the switch itself may be damaged and the keyboard may need to be replaced or the individual switch swapped out.
- Prevent future stickiness by keeping food and drinks away from your keyboard and wiping the surface regularly with a dry cloth.
Clean around the key without removing the keycap
Start here because this is the safest approach and solves most sticky key problems. Turn off your computer and unplug the keyboard if it is wired. If it is wireless, just turn it off.
Hold the keyboard upside down over a trash can and gently tap the back and sides. This dislodges loose crumbs and dust. Then use a can of compressed air, holding it upright and using short bursts to blow air between and around the sticky key and its neighbors. Angle the nozzle so the air pushes debris out from under the key rather than deeper in. Do this for 10 to 15 seconds, then flip the keyboard right-side up and test the key.
If the key is still sticky and you suspect liquid, dampen a corner of a cloth with distilled water (not tap water, which leaves mineral deposits) and work it into the gap around the keycap. Press the key repeatedly while the cloth is there to work the moisture down and help dissolve whatever is stuck. Let it dry for at least an hour before plugging the keyboard back in.
Remove and clean the keycap on a mechanical keyboard
If compressed air and damp cloth didn't work, you can remove the keycap itself on a mechanical keyboard. You will need a keycap puller, which costs $3 to $8 and looks like a small wire loop or plastic claw. Many mechanical keyboards come with one in the box. If you don't have one, a small flathead screwdriver works in a pinch, though it is riskier because you can scratch the keycap.
Hook the puller under opposite sides of the keycap and pull straight up with steady pressure. Do not rock it side to side, which can bend the stabilizer bar underneath. Once the keycap is off, you will see the switch—a small plastic or metal box with a stem in the middle. Use compressed air to blow out dust and debris from around the stem and the switch housing. If there is dried liquid, use a cotton swab barely dampened with distilled water to clean the stem and the inside walls of the switch. Let it dry completely (at least 30 minutes) before reinstalling the keycap.
To reinstall, align the keycap stem with the switch stem and press down firmly until you hear or feel a click. The keycap should sit level with its neighbors. If it feels loose or crooked, remove it and try again—it may not be seated properly.
Why you should avoid removing keycaps on laptop and flat keyboards
Laptop keyboards and membrane keyboards (the flat kind you find on budget desktop keyboards) have keycaps that are glued or clipped on in ways that make removal risky. The clips underneath are thin plastic and break easily. If you break a clip, the keycap will not stay on and you will need to replace the entire keyboard.
For these keyboards, stick with compressed air and the damp cloth method described above. If the key is still sticky after that, the switch underneath is likely damaged and the keyboard will need to be replaced. Attempting to pry the keycap off usually causes more damage than it solves.
When the switch itself is damaged
If a key still sticks after you have cleaned around it and under the keycap, the switch mechanism itself is probably worn out or broken. On a mechanical keyboard, you can replace just that one switch if you are comfortable with it—switches cost $0.50 to $3 each and you can buy them online. You will need a switch puller (similar to a keycap puller) and a soldering iron if your keyboard is soldered, or you can just pull it out if your keyboard uses hot-swap sockets.
If you are not comfortable replacing a switch, or if you have a laptop or flat keyboard, the easiest fix is to replace the entire keyboard. Mechanical keyboard replacements range from $30 to $150 depending on the brand and features. Laptop keyboard replacements vary widely by model but typically cost $50 to $200 including labor if you take it to a repair shop. Many people find it simpler to buy a new external keyboard than to repair a laptop keyboard.
Prevent sticky keys in the future
Keep food and drinks away from your keyboard. If you do spill liquid on it, turn it off when ready, unplug it, and let it dry completely (at least 24 hours) before using it again. Dried liquid is one of the most common causes of stickiness.
Wipe your keyboard once a week with a dry microfiber cloth to remove dust and crumbs before they settle under the keys. If you eat at your desk, use a keyboard cover when you are not typing, or keep a small brush nearby to sweep crumbs away. These straightforward habits prevent most sticky key problems from happening in the first place.
Frequently Asked Questions
Can I use rubbing alcohol to clean a sticky key?
Isopropyl alcohol (70 percent) is safe for cleaning mechanical keyboard switches because it evaporates quickly and does not leave residue. Dampen a cotton swab with it and clean the switch stem and housing, then let it dry for 15 minutes before reassembling. Do not use it on laptop keyboards because the liquid can seep into the circuit board underneath.
What if only one corner of the key feels sticky?
This usually means debris is stuck on one side of the switch stem. Try compressed air first, angling the nozzle to target that specific side. If it persists, remove the keycap (on a mechanical keyboard) and use a cotton swab to clean just that side of the stem. The key should move freely once the debris is gone.
Is it safe to use a vacuum cleaner on my keyboard?
No. Vacuum cleaners generate static electricity that can damage the circuit board, and the suction can pull small components loose. Compressed air is much safer because it blows debris out without creating static or pulling on internal parts.
How long does it take for a keyboard to dry after I spill liquid on it?
At least 24 hours in a warm, dry place. If the spill was large or the liquid was sugary (soda, juice), wait 48 hours. You can speed drying by placing the keyboard in a warm room or near (not on) a heat source, but do not use a hair dryer on high heat because that can damage the plastic. Once it feels completely dry to the touch, wait another few hours before plugging it in.
Can I fix a sticky key by pressing it repeatedly?
Sometimes, if the stickiness is caused by a tiny piece of debris that is not fully wedged. Pressing the key repeatedly may work it loose. However, if the key is still sticky after 20 or 30 presses, repeated pressing will not help and may wear out the switch faster. Move on to cleaning instead.