How to Clean a Keyboard Inside: Safe Step-by-Step
In this article
To clean a keyboard from the inside, unplug it (or remove the batteries), take off the keycaps, and use compressed air plus a soft brush to clear dust and debris from the plate and switches. For a deeper clean, open the case only if your model is designed for it, and use isopropyl alcohol on a cloth—never pour liquid inside. This guide covers the safe sequence for both membrane and mechanical keyboards, what to avoid, and how to fix common problems like sticky keys or a key that stops working after reassembly.
What You'll Need
- Compressed air can or a manual air blower
- Keycap puller (or a wire paperclip bent into a U)
- Soft brush (clean paintbrush or anti-static brush)
- Isopropyl alcohol (70% or higher) and lint-free cloths or cotton swabs
- Small Phillips-head screwdriver (only if your keyboard has screws and you plan to open the case)
- Shallow container or tape for keeping keycaps organized
- Phone camera (optional, to photograph the layout before removing keycaps)
Step-by-Step
- Power down and disconnect. Shut down the computer, unplug the USB cable, and remove batteries from wireless keyboards. This prevents accidental key presses and static damage.
- Photograph the layout. Take a clear photo of the keyboard before removing anything. Keycaps are not always in the same row profile, and a photo saves guesswork when putting them back.
- Remove the keycaps. Use a keycap puller to pull each cap straight up. Work from the edges inward. On most mechanical keyboards the caps pop off with moderate force; on scissor-switch laptops, do not remove keycaps unless the manufacturer documents it—the clips break easily.
- Shake out loose debris. Hold the keyboard upside down over a bin and gently shake. Tap the back to dislodge crumbs. Do not bang it against a hard surface.
- Blow out dust. Use short bursts of compressed air at an angle, moving along the rows. Keep the can upright to avoid spraying propellant. A manual air blower is safer for delicate switches.
- Brush the plate and switches. Use a soft brush to sweep dust from between switches and along the edges. For sticky residue, dampen a cloth with isopropyl alcohol and wipe the plate—never spray liquid directly inside.
- Clean the keycaps separately. Place keycaps in a bowl of warm water with a drop of mild dish soap. Stir gently, rinse, and dry completely on a towel—at least a few hours or overnight. Moisture trapped under a cap can cause misfires.
- Open the case only if designed for it. If your keyboard has visible screws and the manufacturer provides a teardown guide, remove the screws and lift the top shell carefully. Do not pry sealed or glued cases. Inside, use air and a brush; avoid touching the PCB with wet materials.
- Reassemble and test. Once everything is dry, replace the keycaps by aligning the stems and pressing down firmly. Reconnect and test every key using a keyboard tester website or a text document.
Common Mistakes
- Spraying liquid cleaner directly onto the keyboard or into the case—this shorts the PCB.
- Removing keycaps on a scissor-switch laptop keyboard without manufacturer guidance; the plastic clips snap.
- Using a vacuum cleaner with a plastic nozzle—static buildup can damage electronics. Use compressed air or an anti-static brush instead.
- Replacing keycaps while they are still damp, which leads to sticky or non-working keys.
- Forcing a keycap that does not seat easily; check the stem orientation before pressing harder.
- Opening a sealed case with a knife or pry tool, cracking the shell and voiding the warranty.
Tips
- Work on a clean, well-lit table with a towel underneath to catch small parts.
- Keep keycaps in rows in a muffin tin or tape them to a sheet of paper in layout order.
- Use 90% isopropyl alcohol for electronics; it evaporates faster than 70% and leaves less residue.
- Clean your keyboard every few months, and shake out crumbs weekly if you eat at the desk.
- Store the keyboard with a dust cover when not in use to reduce internal buildup.
Troubleshooting
- A key does not register after cleaning: Remove the keycap and check that the switch stem is not bent. On mechanical keyboards, reseat the cap firmly. If it still fails, the switch may need replacement by a professional.
- Keys feel sticky: Residue from liquid or soap remains. Wipe the affected area with a cloth barely dampened with isopropyl alcohol and let it dry fully.
- Keycap will not go back on: Check that the stabilizer or stem is aligned; do not force it. Compare with the photo you took earlier.
- Keyboard not detected after reassembly: Reconnect the cable firmly, try another USB port, and check that no ribbon cable inside was loosened if you opened the case.
- Liquid spilled inside: Disconnect immediately, turn upside down, and let it dry for at least 48 hours before powering on. Do not use heat.
Frequently Asked Questions
Can I clean a laptop keyboard from the inside?
Only if the manufacturer provides removal instructions for the keyboard assembly. Most laptop keyboards are not designed for user removal, and prying them can damage the palm rest or ribbon cable. For laptops, stick to keycap-level cleaning with air and a brush.
Is it safe to put keycaps in the dishwasher?
No. Dishwasher heat can warp ABS keycaps and fade legends. Hand-wash in warm water with mild soap and air-dry completely.
How often should I clean inside a keyboard?
Every three to six months for most users, or more often if you eat at your desk or have pets. A quick shake-out weekly helps.
Can I use rubbing alcohol on the switches?
You can wipe the plate around switches with a cloth dampened with isopropyl alcohol, but do not drip alcohol into the switch housing. It can carry debris inside and leave residue.
What if a screw is stripped when opening the case?
Stop and do not force it. A stripped screw can be removed with a rubber band over the screw head or a specialized extractor, but if you are unsure, take the keyboard to a repair shop.
Do I need to open the case to clean inside?
For most membrane and many mechanical keyboards, removing keycaps and using compressed air is enough. Opening the case is only necessary for heavy debris or spills, and only if the model is designed for it.