How to fix sticky keyboard keys after a spill or dirt buildup
Sticky keys are usually dried sugar or grime under the keycap. Power off, blow out debris, clean around the key with isopropyl alcohol and work the key free.
- Takes 10 to 30 minutes
- Laptop keyboards
- Mechanical keyboards
- Membrane desktop keyboards
The short answer
Turn off the computer or unplug the keyboard. Blow compressed air under the sticky key, then run a cotton swab dampened with 70 percent isopropyl alcohol around its edges while pressing the key repeatedly to work the residue loose. On a mechanical keyboard, pull the keycap and clean the switch directly. Let it dry for 10 minutes before testing.
A physically sticky key, one that is slow to spring back, feels gummy or needs extra force, almost always has something under it: dried sugar from a drink, food crumbs, or grime built up over months. The fix is to dissolve or remove that residue, and on most keyboards you can do it in a few minutes without taking the keyboard apart.
If you mean the Windows accessibility feature called Sticky Keys, which makes Shift or Ctrl stay pressed, jump to the last section. That is a software setting and needs no cleaning.
What makes keyboard keys sticky?
| Symptom | Likely cause | Fix |
|---|---|---|
| Key feels gummy or tacky | Dried sugary liquid | Isopropyl alcohol around and under the key |
| Key crunches or catches | Crumb or debris under the cap | Compressed air, then remove the keycap |
| Key rubs on one side | Keycap not seated, or a bent stabilizer | Remove and reseat the keycap |
| Key slow to return on a mechanical board | Dirty or worn switch | Clean the switch or replace it |
| Several nearby keys sticky | Spill spread under the keyboard | Deep clean, or professional service for a laptop |
Clean around the key first
This fixes most sticky keys and works on any keyboard, including laptops.
- Shut down the computer, or unplug the keyboard and remove the batteries if it is wireless.
- Tilt the keyboard or laptop and blow compressed air under the sticky key from several angles, in short bursts with the can upright.
- Dip a cotton swab in 70 percent isopropyl alcohol and squeeze out the excess so it is damp, not dripping.
- Run the swab around all four edges of the key, pushing gently into the gap.
- Press the key down 20 to 30 times while the alcohol is still wet. The movement helps the alcohol dissolve residue on the key mechanism.
- Repeat with a fresh swab until the key moves smoothly.
- Let it dry for at least 10 minutes before you turn the computer on.
Isopropyl alcohol is the right choice because it dissolves sugar and oils and evaporates without leaving water behind. Do not use water, soap or any spray lubricant.
Warning: Never drip liquid onto a laptop keyboard. The motherboard and battery sit directly underneath, and a few drops in the wrong spot can short something.
Fix sticky keys on a mechanical keyboard
Mechanical keyboards are the easiest to fix because the keycaps come off safely.
- Unplug the keyboard.
- Use a keycap puller to lift the sticky keycap straight up.
- Look at the keycap stem and the switch for visible residue, and wash the keycap in warm soapy water if it is sticky inside.
- Blow compressed air into the switch.
- Put one or two drops of 70 percent isopropyl alcohol on the switch stem, not more.
- Press the switch 30 to 50 times to spread the alcohol through the mechanism.
- Let the switch and keycap dry completely, about 30 minutes for the switch and longer for a washed keycap.
- Press the keycap back on until it clicks.
If a switch stays sticky or scratchy after two rounds of cleaning, it is worn or damaged. On a hot swappable keyboard, pull the switch with a switch puller and replace it with a matching one. On a soldered board, replacing a switch needs a soldering iron, so it is often simpler to live with it or use a repair service.
For large keys such as the space bar, Shift or Enter, stickiness often comes from the metal stabilizer wire. Remove the keycap carefully, check that the wire sits in both clips, and clean any gunk from the stabilizer housings.
Fix sticky keys on a laptop
Laptop keys use small scissor or butterfly mechanisms with fragile plastic clips. Try the cleaning method above first, several times if needed. Only remove a key if cleaning around it fails.
- Shut down the laptop and unplug it.
- Slide a plastic pry tool or a fingernail under the top edge of the keycap.
- Lift very gently until you feel the clip release. Do not force it, and do not use metal tools.
- Take a photo of how the clips are oriented before you touch anything else.
- Clean the exposed area and the underside of the keycap with an alcohol swab.
- Line the keycap up with the clips and press it down evenly until it snaps into place.
Every laptop brand attaches keys differently, and on some models the clips break on the first removal. Search for your exact model plus “keycap removal” before you start. Replacement individual keys are available for many laptops if one does snap.
MacBooks from roughly 2015 to 2019 with the butterfly keyboard were known for keys that stick or repeat from tiny amounts of dust. Apple ran a repair program for those keyboards, but it is limited to a set number of years after purchase, so most machines are now outside it. For those models, compressed air as Apple describes (laptop tilted at about 75 degrees, sweeping left to right) is the best DIY option.
When a spill is too much
A drop of water on a key usually clears with the method above. A full cup of coffee, soda or juice on a laptop is different: the liquid can reach the board beneath the keyboard, and sugar keeps causing corrosion for weeks. If the laptop behaves oddly after a spill, or several keys stay sticky after cleaning, take it to a repair shop for a proper clean before corrosion sets in. Our guide on how to clean a keyboard covers the immediate spill steps, including why a bag of rice is not a good idea.
For a cheap desktop membrane keyboard, a sugary spill is often not worth fixing. A new keyboard costs less than the time you would spend.
Turn off Windows Sticky Keys
Sticky Keys is an accessibility feature that makes modifier keys like Shift, Ctrl and Alt stay pressed after you let go. It often turns on by accident when you press Shift five times, which is common in games.
- Open Settings > Accessibility > Keyboard.
- Switch Sticky keys to Off.
- Click on Sticky keys to open its options and turn off Keyboard shortcut for Sticky keys.
On a Mac, the equivalent setting is in System Settings > Accessibility > Keyboard > Sticky Keys.
Related guides
Sticky buttons are just as common on game controllers, and our guide to cleaning an Xbox controller uses a similar alcohol technique. If the problem is drifting thumbsticks rather than keys, see how to fix stick drift. And since greasy keys transfer oil to the display every time you close the lid, finish up with how to clean a laptop screen.
Questions people ask
How do I fix sticky keys after spilling soda or coffee?
Power off and unplug right away, turn the keyboard upside down and let it drain. Once dry, clean around each sticky key with a swab dampened with 70 percent isopropyl alcohol, pressing the key over and over. Alcohol dissolves the sugar film. On a mechanical keyboard, remove the keycaps and clean each affected switch. Heavy spills on laptops often need a professional clean.
Can WD-40 fix sticky keyboard keys?
No. WD-40 and similar sprays leave an oily film that attracts dust, can damage plastics and may be conductive enough to cause problems on circuit boards. Use 70 percent isopropyl alcohol, which evaporates completely. If a mechanical switch still feels scratchy after cleaning, replace it or use a lubricant made specifically for keyboard switches.
How do I turn off Sticky Keys on Windows 11?
Open Settings > Accessibility > Keyboard and switch Sticky keys to Off. Click the Sticky keys option itself and turn off Keyboard shortcut for Sticky keys, so pressing Shift five times does not turn it back on. This is a software feature and has nothing to do with physically sticky keys.
Why is only one key sticky?
Usually a crumb, hair or drop of dried liquid is lodged under that specific keycap. Less often, the keycap is not seated evenly on its clip or stabilizer, or the switch underneath is worn. Cleaning around that one key fixes most cases. If it rubs on one side, remove and reseat the keycap.