How to clean a mechanical keyboard
Updated October 2026 · TapTest guides
A dusty keyboard isn't just unpleasant, it's the most common cause of mushy or sticking keys. Here's how to clean one properly without breaking it.
Keyboards get grubby fast. Crumbs, dust, hair and the odd coffee splash all work their way under the keycaps, and before long a key feels mushy or stops responding. The good news is that cleaning a mechanical keyboard is easy and pretty satisfying, and you don't need anything fancy. Here's how to do it safely.
How often should you clean it?
A quick surface clean every week or two keeps things tidy. A proper deep clean two or three times a year is plenty for most people, or sooner if you eat at your desk or share the room with a pet. If a key suddenly feels sticky, that's your cue to clean it regardless of the calendar.
What you'll need
- A can of compressed air, or a small soft brush
- A keycap puller (they cost very little, or use a bent paperclip carefully)
- A microfibre cloth
- Isopropyl alcohol, 70% or higher, for stubborn grime
- A bowl of warm water with a drop of washing-up liquid, for the keycaps
The quick surface clean
For regular upkeep you don't need to take anything apart. Unplug the keyboard first. Turn it upside down over a bin and give it a firm shake or a few taps to dislodge the loose crumbs. Then blast between the keys with compressed air in short bursts, working across the whole board. Finish by wiping the tops of the keys with a microfibre cloth lightly dampened with a little isopropyl alcohol. That alone makes a big difference and takes about two minutes.
The deep clean, step by step
1. Photograph your layout. Before you remove anything, take a quick phone photo of the keyboard. It's the easiest way to know where every key goes when you put it back together.
2. Unplug it and pull the keycaps. Slide the keycap puller over a key, grip opposite corners, and pull straight up. The caps come off with a gentle wiggle. Work across the board and drop the caps into your bowl of warm soapy water as you go.
3. Go easy on the big keys. The long keys, like the space bar, Enter and Shift, sit on little wire stabilisers. Lift these slowly and evenly from the centre so you don't bend the wire. If you're nervous, it's perfectly fine to leave the biggest keys in place and just clean around them.
4. Clean the bare board. With the caps off, tip the board again and brush or blow out everything underneath. For any sticky patches around the switches, dip a cotton bud in isopropyl alcohol, squeeze off the excess, and wipe gently. Alcohol is ideal here because it lifts grime and dries fast without leaving moisture behind. Never pour liquid onto the board.
5. Wash and dry the keycaps. Swirl the caps around in the soapy water, leave them to soak for a few minutes, then rinse and lay them out on a towel. Let them dry completely. This is the step people rush and regret, so give them several hours, ideally overnight. Any trapped water will cause trouble when you power back on.
6. Reassemble. Once everything is bone dry, press each keycap back onto its switch using your photo as a guide. They click into place with light pressure. Plug the keyboard back in.
Check every key afterwards
Refitting keycaps is where the odd one gets missed or seated poorly, so it's worth a quick test. Open the keyboard tester and press every key in turn. Each one should light up and stay marked as confirmed. If a key doesn't register, reseat the cap and try again. If it still won't respond, our guide on why a key stops working covers the likely causes.
What to do after a spill
Spills are the one time speed really matters. Unplug the keyboard immediately and turn it upside down so the liquid drains away from the electronics rather than into them. Blot what you can, then leave it face down to dry for at least 48 hours before powering on. Sugary or sticky drinks leave residue that gums up the switches, so once it's dry you'll usually need to pull the affected keycaps and clean underneath with a little isopropyl alcohol.
A few things not to do
Don't put the board itself anywhere near water, and don't reconnect it until everything is fully dry. Skip harsh solvents and bleach, which can damage the legends and the plastic. And resist the urge to hold the compressed-air can at an angle in one long stream, since that can spit cold liquid onto the board. Short, upright bursts are the way.
That's it. A clean keyboard feels noticeably nicer to type on, and a regular quick clean means you'll rarely need the full strip-down. Give it a go, then run the tester and enjoy watching every freshly cleaned key light up.
A note on laptops and low-profile boards
Everything above assumes a desktop mechanical keyboard with removable keycaps. Laptop keyboards and slim low-profile boards are different. Their scissor-switch keycaps are fragile and clip on in a way that is easy to break, so resist the urge to pull them off for a routine clean. For those, stick to the surface clean: a short burst of compressed air at an angle between the keys, and a lightly dampened microfibre cloth over the tops. Only remove a low-profile keycap if a specific key is failing and you have checked how it clips first, because a snapped clip is far harder to fix than the dirt you were chasing.
Common questions
Can I use water on the keycaps? Yes, the keycaps on their own can be washed in warm soapy water and rinsed. Just never let the keyboard body or its switches near water, and dry the caps completely, ideally overnight, before refitting them.
Is isopropyl alcohol safe on the board? Yes, and it is the right choice because it lifts grime and evaporates quickly without leaving moisture behind. Use it sparingly on a cotton bud rather than pouring it on.
How do I stop keys getting sticky so fast? Avoid eating over the keyboard, wash your hands before long sessions, and give it a two-minute surface clean every week or two. A little upkeep prevents most deep cleans.
A key still sticks after cleaning. Now what? The switch itself may be worn. On a hot-swap board, drop in a spare. Otherwise see our guide on a key that is not working for the next steps.
More guides
- Why is a key on my keyboard not working?
- ANSI vs ISO vs JIS: keyboard layouts explained
- How to test a game controller on PC
- Keyboard ghosting and N-key rollover (NKRO) explained
- Mechanical keyboard switches explained
- Typing speed test: what is a good WPM?
- How to fix controller stick drift
- Wired vs wireless keyboards for gaming
- Membrane vs mechanical keyboards
- Average typing speed by age and profession
- What is keyboard polling rate?
- How to remap keys on Windows and Mac
- Why is my keyboard typing the wrong characters?
- The best keyboard layout for programming
- Controller not detected on PC: fixes
- How to test a mouse
- How to fix a mouse that double-clicks
- How to check a monitor for dead pixels
- How to test a webcam
- How to test a microphone
- Back to the keyboard & controller tester