Affiliate links. I may earn a commission at no extra cost to you. #ad
Most “broken” keys I see are just dirty keys. Crumbs, dust, skin oil, and a little dried coffee are enough to make a key stick, double type, or stop responding. Cleaning fixes a lot of that, but done wrong it’s also how people snap laptop key clips or drip liquid where it doesn’t belong. Below is how I clean each type of keyboard, starting with the gentlest method and working up to the most hands-on.
Routine clean (any keyboard)
- Power it off or unplug it, same as above.
- Turn the keyboard upside down over a trash can and tap the back gently. You’d be surprised what falls out.
- Blow air between the keys in short bursts, working across the rows. If you use canned air, keep the can upright.
- Wipe the keycaps with a microfiber cloth that’s barely damp with water. Logitech’s own cleaning steps say exactly this: a lightly moistened, lint-free cloth, never water poured or sprayed onto the keyboard.
- Let it air dry for a few minutes before turning it back on.
For most keyboards, that’s all the cleaning they ever need.
Disinfecting vs. cleaning residue: which alcohol?
People mix these two jobs up all the time, but they're different.
- Disinfecting the outside: Apple says you can use a 70% isopropyl alcohol wipe (or Clorox disinfecting wipes) to gently wipe hard, nonporous surfaces like the keyboard. Don’t use bleach, and don’t let moisture get into any openings.
- Dissolving sticky residue: for soda or coffee gunk around a key, I use 99% isopropyl alcohol on a swab squeezed nearly dry. It has very little water in it and evaporates fast.
Some makers are stricter, though. Logitech’s general cleaning page lists alcohol swabs under 25% for its devices, and its business support page suggests testing alcohol on a hidden spot first so it doesn’t wipe off key lettering. Check your keyboard maker’s page if you’re unsure.
Laptop keyboards (scissor and chiclet keys)
Most Windows laptops have flat chiclet keys sitting on small plastic scissor clips. Those clips are thin and easy to break, so I don’t pop laptop keys off for a routine clean.
- Shut down and unplug.
- Hold the laptop at an angle and blow air across the keyboard in short bursts, from a few directions.
- Wipe the keys with a barely damp microfiber cloth.
- For a sticky key: work a nearly dry 99% alcohol swab around its edges, pressing the key over and over while it dries.
Only remove a laptop keycap if something is clearly stuck under it. If a key still won’t work after cleaning, go to the troubleshooting steps in keyboard keys not working.
MacBook keyboards
On MacBook and MacBook Pro models with butterfly keyboards (2015 to 2019), Apple’s fix for an unresponsive key is compressed air. Hold the Mac at a 75-degree angle, spray left to right across the keys using the straw about half an inch away, then repeat with the Mac turned onto its right side and then its left side. Never turn the can upside down.
For everyday cleaning on any MacBook, Apple says to shut down, unplug the power adapter, and use a soft, lint-free cloth that’s only damp. Don’t spray liquid directly on the computer and don’t let moisture into openings. Don’t try to pry off butterfly keycaps. They’re fragile.
Desktop membrane (rubber dome) keyboards
These are the standard office keyboards. The routine clean above handles them. Some have keycaps that pull off, but many cheap ones aren’t really built for it, and the larger keys can be hard to get back on. If a membrane keyboard has a sugary spill inside it, it’s usually cheaper to replace it than to take it apart.
Mechanical keyboards: the deep clean
Mechanical keyboards are the easiest to deep clean because the keycaps are made to come off.
- Unplug it. Take a photo of the layout so you can put the caps back in the right places.
- Pull the keycaps straight up with a keycap puller. Go slowly on Space, Shift, Enter, and Backspace. Those have stabilizer wires underneath.
- Use a soft brush and air to clean out the plate around the switches.
- Wash only the keycaps. Soak them in warm (not hot) water with a little dish soap, rinse, and lay them out on a towel to dry completely. Hot water can warp ABS keycaps. Wait until they’re fully dry, ideally overnight, before putting them back.
- Never soak the keyboard itself or the switches, because water stays on the board and the switch contacts. Any residue around the switches gets a nearly dry 99% alcohol swab only.
- Line each cap up on its switch stem and press until it seats.
If a switch still feels scratchy or chatters (double types), that’s a switch problem, not a dirt problem. See mechanical keyboard double typing (chattering) fix.
Mechanical keyboard: how to clean it without removing the keys
Pulling every keycap is the deep clean, but it isn't always needed. For dust, crumbs, and light grime on top, you can clean a mechanical keyboard with the caps on. Maker support pages from Keychron, Logitech, Corsair, and Razer cover the same basics.
- Unplug it and switch it off, and wait a few seconds. Corsair says at least 5 seconds after unplugging, and Logitech says 5 to 10 seconds. If it has user-replaceable batteries, take them out first, as Logitech says.
- Turn the keyboard upside down and gently shake it. Keychron lists this as the first step. Razer's guidance for caps you can't remove is the same idea: turn it upside down and use compressed air to blow out loose dust and debris.
- Blow air between the keys in short bursts, keeping the can upright. Logitech says compressed air removes loose debris and dust between the keys, and that cold air from a hair dryer works if you have no compressed air. For a cordless blower, see electric air duster vs canned air.
- Use a soft brush or a cotton swab between the keys. Keychron lists brushes and swabs for getting between the keys.
- For stuck-on grime, use a small amount of isopropyl alcohol on the swab, as Keychron says. Keep the swab nearly dry, as in the sticky-key tip higher up this page, so nothing runs down into the switches.
- A small USB keyboard vacuum is fine. Keychron says not to use a full-sized vacuum on a keyboard.
- Wipe the tops and sides of the keys with a soft, lint-free cloth. Logitech says to moisten it lightly with tap water. Corsair says to use isopropyl alcohol and to gently rub the exposed outside surfaces. Makers differ on alcohol, and Logitech lists only alcohol swabs under 25% concentration for its keyboards. Check your own keyboard maker's page, and test a hidden spot first so the legends don't rub off.
Don't spray or pour liquid onto the keyboard. Corsair warns that liquid reaching the printed circuit board can cause problems. Logitech says not to use bleach, acetone, strong solvents, or abrasives, and not to put cleaning liquid directly on the device.
This cleans what you can reach. It doesn't clean under the caps or around the switches. If a key is sticky from a spill, or still feels off afterward, take that key off using how to remove and reattach a keycap and use the deep-clean steps above. For keys that won't register at all, see keyboard keys not working.
Wireless and Bluetooth keyboards
Clean them like any other type, but switch the keyboard off and take out replaceable batteries first, as Logitech recommends. Keep moisture away from the battery compartment and charging port. Built-in rechargeable batteries can’t come out, so make sure the power switch is off.
What about keyboard cleaning gel?
Part for this step: Keyboard cleaning gel (paid link)
Cleaning gel works well for lifting dust off the surface. Press it on lightly and lift it straight off. Don’t push it hard into the gaps, and don’t use it on a mechanical keyboard with the keycaps off, where it can stick to the switch stems. Never use it on a damp keyboard.
How often?
There’s no official schedule, so this is just my habit: tap it out and wipe it every week or two, and do a mechanical deep clean a couple of times a year or when keys start feeling off. Eating over the keyboard means cleaning more often. If the desk area is dusty, the PC probably is too. See clean a dusty desktop for the tower.
Keep it safe
- Power off first, every time.
- No liquid poured or sprayed onto the keyboard.
- If you open anything up, follow anti-static habits that matter.
- If it’s a fresh spill rather than built-up grime, stop and go to spilled water on a laptop keyboard. That needs a different approach.
FAQ
Can I wash my keyboard in water?
Only the mechanical keycaps, after you take them off the keyboard. Never put the keyboard or switches in water.
Can I clean a mechanical keyboard without removing the keycaps?
Yes, for dust, crumbs, and surface grime. Turn it upside down and shake it, blow air between the keys, brush or swab around them, and wipe the tops with a lightly damp lint-free cloth. Keychron, Logitech, Corsair, and Razer all describe these steps. It won't clean under the caps, so a spill or a sticky switch still needs the keycaps off.
Can I use a vacuum on a mechanical keyboard?
A small USB keyboard vacuum is OK. Keychron says not to use a full-sized vacuum.
Can I use disinfecting wipes on my keyboard?
Apple says 70% isopropyl or Clorox disinfecting wipes are fine on hard surfaces like the keyboard. Wring them out so they aren’t dripping. Some makers say to test a hidden spot first so the lettering doesn’t come off.
Should I remove laptop keys to clean them?
Usually no. The clips break easily. Use air and a damp cloth first, and only remove a key if something is clearly stuck under it.
Is cleaning gel safe?
On the surface with light pressure, yes. Keep it off exposed switches and damp keyboards.