Skip to content

As an Amazon Associate I earn from qualifying purchases. How links work

Hardware Repair Guides

GuidesLaptops

How to Clean a Keyboard Without Breaking Keys

How to clean a laptop, MacBook, desktop, mechanical, or wireless keyboard safely: what to use, what never to use, and how to fix sticky keys.

By Andrew Musselman · October 13, 2026 · 11 min read

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. Here’s how I clean each type of keyboard, from gentlest to most hands-on.

Routine clean (any keyboard)

  • Power off or unplug, 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?

These are two different jobs, and people mix them up.

  • 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.

One caveat: some makers are stricter. 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.
  • Brush and blow out the plate around the switches. Use a soft brush and air.
  • 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. Water stays on the board and 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.

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?

Gel is handy 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

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 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.

Keep going

Keep fixing