How to Clean a Mechanical Keyboard Safely
In this article
You can safely clean a mechanical keyboard by disconnecting it, removing the keycaps, and cleaning the case and switches with isopropyl alcohol and compressed air. The key is to avoid liquids that conduct electricity and to let everything dry completely before reassembling. This guide walks you through the safe method step by step, including what supplies you need and how to avoid the mistakes that ruin switches.
What You'll Need
- Keycap puller (wire or plastic) — never use a screwdriver or knife
- Isopropyl alcohol (70% or higher) and lint-free cloths or cotton swabs
- Compressed air can or a manual air blower
- Small brush (soft paintbrush or clean toothbrush)
- Dish soap and warm water for deep-cleaning keycaps (optional)
- Towel or drying rack
- Container or mat to keep screws and keycaps organized
Step-by-Step
- Unplug the keyboard. Turn off the computer or unplug the USB cable. For wireless models, remove the batteries or switch it off. Never clean a connected keyboard — a stray drip or static discharge can damage it or your PC.
- Take a photo of the layout. Before removing any keycaps, snap a picture with your phone. This saves time when putting them back, especially on non-standard layouts.
- Remove the keycaps. Use a keycap puller. Hook it under opposite corners of a keycap and pull straight up with steady pressure. Work from the edges inward. For large keys (spacebar, Shift, Enter), pull evenly to avoid bending the stabilizer wires. Put keycaps in a bowl or tray as you go.
- Shake out loose debris. Turn the keyboard upside down over a trash can and gently tap the back. This removes crumbs and dust before you use any liquid.
- Blow out the switches and case. Use short bursts of compressed air, holding the can upright. Keep the nozzle a few inches away and avoid tilting the can, which can spray propellant. A manual air blower works too and is safer for the switch stems.
- Brush the plate and switches. Use a soft brush to sweep dust from between switches and along the edges. A clean toothbrush works for stubborn grime around the switch housing.
- Clean the case and plate. Dampen a lint-free cloth with isopropyl alcohol — do not spray directly onto the keyboard. Wipe the case, plate, and the sides of switch housings. For tight spots, use a cotton swab lightly dipped in alcohol. Avoid letting alcohol pool around the switches.
- Wash the keycaps (optional). If keycaps are grimy, place them in a bowl with warm water and a drop of dish soap. Stir gently and let them soak for 10–15 minutes. Do not use hot water or harsh cleaners. Rinse thoroughly and dry completely on a towel — at least a few hours, ideally overnight.
- Clean the cable and connectors. Wipe the USB plug and cable with a dry or slightly alcohol-dampened cloth. Check for bent pins or frayed wires.
- Let everything dry. Before reassembly, make sure the keyboard and all keycaps are bone dry. Any moisture trapped under a keycap can cause erratic key presses or corrosion.
- Reinstall the keycaps. Press each keycap straight down until it seats. Use your photo to match the layout. Test large keys for smooth movement — if a stabilizer feels sticky, reseat the keycap evenly.
- Test the keyboard. Plug it back in and open a text editor or an online key tester. Press every key to confirm it registers. If a key doesn't work, unplug and reseat its keycap, then check the switch for debris.
Common Mistakes
- Using too much liquid. Spraying cleaner directly on the keyboard or soaking switches can short circuits and leave residue. Always apply alcohol to a cloth first.
- Pulling keycaps with the wrong tool. Screwdrivers and knives scratch keycaps and can crack the switch stem. Use a proper keycap puller.
- Forgetting to unplug. Cleaning a live keyboard risks damage from static or accidental key presses.
- Submerging the keyboard. Never run a mechanical keyboard under water or put it in a dishwasher, even if the case is plastic.
- Reassembling while wet. Trapped moisture causes corrosion and sticky switches. Wait until everything is completely dry.
- Using household cleaners. Bleach, ammonia, and abrasive cleaners can discolour keycaps and damage plastic. Stick to isopropyl alcohol and mild dish soap.
Tips
- Clean your keyboard every few months, or more often if you eat at your desk.
- Keep the original keycap puller — it's the safest tool for the job.
- Use a keycap layout diagram if your keyboard has a non-standard layout.
- Store removed keycaps in a container with a lid so they don't get lost.
- For sticky switches, a small amount of isopropyl alcohol on a cotton swab around the stem can help, but let it dry fully before use.
- Consider a keyboard cover or a dust cover when not in use to reduce cleaning frequency.
Troubleshooting
- A key doesn't register after cleaning. Unplug the keyboard, remove the keycap, and check that the switch stem isn't bent or obstructed. Blow out debris and reseat the keycap. If it still fails, the switch may need replacement (on hot-swappable boards) or professional repair.
- Keycaps feel sticky. Residue from soap or cleaner may be left on the keycaps. Remove and rinse them again in plain water, then dry thoroughly.
- Keyboard types by itself. Moisture may be inside. Unplug immediately and let it dry in a warm, dry place for at least 24 hours. Do not use heat guns or ovens.
- Stabilizers rattle or stick. Remove the large keycap and check that the stabilizer wire is seated correctly. A tiny amount of dielectric grease on the wire can help, but avoid over-lubricating.
- Case screws won't go back in. Make sure you're using the correct screws and not cross-threading. Start each screw by hand before tightening.
Frequently Asked Questions
Can I clean a mechanical keyboard without removing keycaps?
Yes, for light cleaning. Unplug it, shake out debris, blow out dust with compressed air, and wipe the case and keycaps with a cloth lightly dampened with isopropyl alcohol. Removing keycaps gives a deeper clean but isn't always necessary.
Is it safe to use isopropyl alcohol on keycaps?
Yes, 70% or higher isopropyl alcohol is safe for most plastic keycaps and evaporates quickly. Avoid soaking keycaps in alcohol for long periods, and don't use it on printed legends if you're unsure — test on a hidden key first.
How often should I clean my mechanical keyboard?
Every 2–3 months for typical use. If you eat at your desk or have pets, clean more often — every month or so.
Can I put keycaps in the dishwasher?
No. Dishwashers use high heat and harsh detergents that can warp keycaps and fade legends. Hand-wash with mild soap and warm water instead.
What should I do if liquid spills on my keyboard?
Unplug immediately, remove keycaps, and tilt the keyboard to drain. Blot with a cloth and let it dry completely for at least 24 hours before testing. Do not use heat to speed drying.
Are hot-swappable switches easier to clean?
Yes. You can remove the switches with a switch puller and clean the plate and PCB more thoroughly. Always unplug the keyboard first and follow the manufacturer's instructions for switch removal.