The fastest way to clean a keyboard
Turn off your computer and unplug the keyboard. Use a can of compressed air held upright, with the nozzle about two inches from the keys, and spray short bursts between and under the keys. Tilt the keyboard at an angle so debris falls away from the board rather than deeper into it. This removes most dust and crumbs in under five minutes and is safe for all keyboard types.
For sticky keys or visible grime, dampen a microfiber cloth with distilled water—not tap water, which leaves mineral deposits—and wipe the tops and sides of the keys. Do not spray water directly onto the keyboard. Let it air dry for at least 30 minutes before plugging it back in. If keys still stick after drying, the problem is likely inside the switch mechanism and cleaning from outside will not fix it.
Key Takeaways
- Compressed air removes dust and crumbs safely without opening the keyboard or risking water damage.
- Always unplug the keyboard before cleaning and let it dry completely before use.
- Distilled water on a cloth works for surface grime, but never spray liquid directly onto the keyboard.
- Sticky keys that do not improve after surface cleaning usually need professional repair or replacement.
- Mechanical keyboards with removable keycaps can be cleaned more thoroughly by taking the caps off, but membrane and laptop keyboards should not be disassembled.
When to use compressed air versus a damp cloth
Compressed air is your first choice for routine cleaning and for any keyboard you want to avoid opening. It dislodges dust, pet hair, and food particles without moisture. Hold the can upright so only gas—not the liquid propellant—comes out, and use short bursts rather than one long spray, which can damage delicate components.
A damp cloth is better for visible stains, dried spills, or sticky residue on the key surface. Dampen the cloth until it is barely wet, not dripping. Wipe each key individually and the spaces between them. This method takes longer but reaches grime that air alone will not move. Never use alcohol-based cleaners on painted or printed key labels, as they can strip the lettering.
Cleaning a mechanical keyboard with removable keycaps
If your keyboard has keycaps you can pull straight up without tools, you can clean more thoroughly. Remove all the keycaps by pulling them straight upward—they should come free with gentle, even pressure. Place them in a bowl of warm water with a drop of dish soap and let them soak for 10 to 15 minutes, then scrub gently with a soft brush and rinse with distilled water.
While the keycaps soak, use compressed air on the exposed switch mechanisms underneath. Spray at an angle to push debris out and away. Do not poke at the switches or try to clean inside them with a cloth. Once the keycaps are dry, press each one straight down onto its stem until it clicks or seats fully. If a keycap does not go back on easily, do not force it—it may be on the wrong switch.
What not to do when cleaning a keyboard
Do not use a vacuum cleaner on a keyboard. The static electricity from a vacuum can damage the circuit board, and the suction can pull small components loose. Do not spray compressed air upside down or at extreme angles, which releases the liquid propellant and can damage switches. Do not use paper towels, which shed fibers into the keyboard—use microfiber cloth instead.
Do not attempt to clean under the keycaps of a laptop keyboard or a membrane keyboard with fixed keys. These designs are not meant to be opened, and forcing keys off can break the clips that hold them. Do not use bleach, acetone, or harsh solvents. Do not pour water directly onto the keyboard or soak it. Do not plug the keyboard back in until it is completely dry—at least 30 minutes for a damp cloth cleaning, longer if liquid entered the board.
Dealing with spills and liquid damage
If you spill liquid on your keyboard, unplug it when ready and turn off your computer. Do not try to use the keyboard while it is wet. Tilt the keyboard to drain excess liquid, then use compressed air to blow out moisture from between the keys and underneath. Let it sit unplugged in a warm, dry place for 24 to 48 hours before plugging it back in.
If the keyboard does not work after drying, or if keys stick or produce multiple characters when pressed, the liquid has likely damaged the circuit board or switch mechanisms. At that point, the keyboard usually cannot be repaired and replacement is the practical option. Some people place a wet keyboard in a sealed container with uncooked rice or silica gel packets to absorb moisture, though this works better for phones than for keyboards with many crevices.
How often to clean your keyboard
A light compressed-air cleaning every month keeps dust from building up inside. If you eat or drink near your keyboard, clean it every two weeks. If you have pets or live in a dusty environment, monthly cleaning prevents debris from jamming the keys. A damp-cloth wipe of the key surfaces can happen whenever you notice visible grime—usually every few months for most people.
The longer you wait between cleanings, the more dust settles into the mechanism and the harder it becomes to remove without opening the keyboard. Regular light cleaning is easier and safer than occasional deep cleaning. If your keyboard lives in a clean desk environment and you do not eat near it, a few times a year is enough.
Frequently Asked Questions
Can I use rubbing alcohol to clean my keyboard?
Isopropyl alcohol can work on the plastic housing and between keys, but avoid spraying it on printed key labels, which it can fade or strip. If you use it, explore it to a cloth first, not directly to the keyboard, and let the board dry fully before plugging it in. Distilled water is safer for most people.
What should I do if compressed air comes out as liquid?
The can is tilted or inverted. Always hold it upright with the nozzle pointing down. If liquid does spray onto your keyboard, unplug it when ready and let it dry for 24 hours. Liquid propellant evaporates quickly and usually does not cause lasting damage if the keyboard dries completely.
Is it safe to clean a wireless keyboard the same way?
Yes. Unplug the USB receiver or turn off the keyboard's power switch before cleaning. The cleaning methods are identical. Just make sure the keyboard is fully dry before turning it back on or reinserting batteries.
Why do some keys stick even after I clean them?
Surface cleaning removes debris from the top, but sticky keys usually mean liquid or dried residue has seeped into the switch mechanism underneath the keycap. If the key still sticks after the keyboard has dried completely, the switch itself needs cleaning or replacement, which requires opening the keyboard or removing the keycap—something best left to a repair shop if you are not comfortable with it.