Cleaning 101.

A little know-how. More room for life.

How to Clean a Keyboard

Unplug it, tip out the crumbs, blow between the keys and wipe with a barely damp cloth. Plus washing mechanical keycaps, sticky keys and spills.

Part 2 of 8 in the desk and home office cleaning series. It starts with How to Clean Your Desk and Keep It Organised.

Crumbs, dust and the tacky film from fingertips build up on every keyboard. Most of it comes off without taking anything apart.

Quick answer: Unplug the keyboard (or switch it off and remove the batteries), hold it upside down and tap out the crumbs, then blow between the keys with short bursts of compressed air, can upright. Wipe the keys with a cloth barely damp with water, or a 70% isopropyl alcohol wipe for grease. Mechanical keycaps can soak in warm soapy water for 30 to 60 minutes, then dry overnight.

Which keyboard do you have?

The type decides whether the keys should come off.

Keyboard

How to tell

Pull the keys?

What to do

Mechanical (most gaming and enthusiast keyboards)

Tall, individually mounted keys with a clicky or clacky feel

Yes, straight up with a keycap puller

All five steps below, including washing the keycaps

Low-profile or scissor-switch (Apple Magic Keyboard and most slim wireless keyboards)

Thin, flat keys with short travel

No, not for routine cleaning: the small hinges under these keys can break, Logitech warns

Steps 1 to 4, cleaning around the keys

Membrane (standard office keyboards)

Soft, quiet keys on a rubber sheet

Usually not needed: HP says cleaning around the keys is enough unless something's visible underneath

Steps 1 to 4

Laptop keyboard

Built into the computer

No

See How to Clean Your Laptop Safely

Not sure


No

Treat it as low-profile: steps 1 to 4 only

What you need

  • Compressed air in a can with a straw nozzle, or a hair dryer with a cool setting
  • A soft brush: a clean makeup brush, paintbrush or soft toothbrush all work
  • Two lint-free microfibre cloths and some cotton buds
  • 70% isopropyl alcohol: pharmacy swabs such as Liv-Wipe (Chemist Warehouse) are already 70%. Hardware-store isopropyl alcohol such as Diggers is over 99% according to its safety data sheet, so mix 7 parts with 3 parts distilled water for about 70%
  • For a mechanical keyboard: a keycap puller, a bowl, mild dish soap and a towel

Products checked October 2026.

How to clean a keyboard, step by step

Step 1: Switch it off

  1. Unplug a wired keyboard. Switch a wireless one off, take out any replaceable batteries and wait 5 to 10 seconds, as Logitech advises.
  2. Lay a tea towel underneath to catch crumbs.

Step 2: Tip out the crumbs

  1. Hold the keyboard upside down over a bin and shake it gently.
  2. Give the back a soft tap to loosen more. Logitech warns that a hard whack can damage it.
  3. While it's still upside down, run the soft brush along the rows of keys.

Step 3: Blow out the gaps

  1. Hold the can upright and blow between the keys in short bursts, working across the keyboard in a zigzag, row by row.
  2. Never tilt or upend the can. Logitech warns it can then spray liquid propellant cold enough to cause frostbite. Pause when the can gets cold, don't breathe the gas, and work with a window open.
  3. No can? Use a hair dryer on its cool setting only; Logitech says hot air can quickly damage a keyboard.

Step 4: Wipe the keys

  1. Dampen a corner of a microfibre cloth with tap water and wring it until it's barely damp. Wipe the tops of the keys and the frame.
  2. Never pour or spray anything onto the keyboard. Spray the cloth instead: liquid that runs between the keys reaches the electronics.
  3. For greasy or shiny keys, use a 70% isopropyl alcohol swab, or the cloth dampened with 70% alcohol. Apple allows 70% alcohol wipes on its keyboards, and Dell uses a 70/30 mix of alcohol and water on its equipment.
  4. Test alcohol on one rarely used key first: HP says to keep isopropyl alcohol off the printed letters, and Logitech warns stronger cleaners can discolour keys or remove printing. On a Logitech keyboard, use wipes under 25% alcohol.
  5. Run a cotton bud, damp in the same way, along the gaps between the keys.
  6. Isopropyl alcohol is highly flammable (Diggers' safety data sheet classes it H225). Use it on a cloth with the keyboard off, away from heaters and flames, and let it evaporate fully before switching on.

Step 5: Mechanical keyboards only: wash the keycaps

  1. Photograph the keyboard first so you know where every key goes back, as Corsair suggests.
  2. Lift each keycap straight up with a keycap puller, using steady, even pressure. Keychron warns against prising them with sharp tools, which can crack or scratch the caps.
  3. Leave the long keys (space bar, Enter, Shift) until last and lift them gently: HP says this avoids stressing the stabiliser wires underneath.
  4. Put the caps in a bowl of warm water with a squirt of mild dish soap, fully submerged, for 30 to 60 minutes (Corsair). Keep the water warm, not hot: HP says hot water can warp ABS keycaps, while PBT copes better.
  5. While they soak, brush and blow out the exposed keyboard, then wipe it with a barely damp cloth. Corsair warns that liquid reaching the circuit board can cause problems.
  6. Rinse the caps, dry them on a towel and leave them to air-dry overnight (Corsair). Press each one back on using your photo, only once they're completely dry.

Done looks like: no tacky film under your fingertip, no crumbs in the gaps, and every key registering when you type a test line.

If a key still sticks or doesn't register, see the next section.

Laptop keyboards

A laptop keyboard sits on top of the whole computer, so shut it down, don't pull the keys, and use only a barely damp cloth or wipe. How to Clean Your Laptop Safely covers the keyboard, screen and vents together, including MacBooks.

Sticky keys and spills

  1. After a spill, unplug the keyboard at once (or shut down the laptop) and turn it upside down to drain. Blot, don't wipe, with a lint-free cloth (HP).
  2. Leave it to dry completely for at least 48 hours before you plug it back in, as HP advises.
  3. Keys that stick once it's dry usually have residue under the caps. Keychron's fix on a mechanical keyboard: pull the sticky caps and clean around each switch with a cotton bud dipped in isopropyl alcohol.
  4. If the switch itself still drags, HP's mechanical keyboard guide puts 1 to 2 drops of 90% or stronger isopropyl alcohol into the switch and presses it 20 to 30 times.
  5. On low-profile and membrane keyboards, clean around the sticky key with a barely damp cotton bud and leave the key in place.

Method

Verdict

Why

Compressed air

Yes, upright, short bursts

Logitech's main method for the gaps

Cleaning gel (keyboard slime)

Fine for dust

HP says it lifts dust from tight spots; bin it once it's dirty

Vacuum cleaner

Only an anti-static one

Keychron warns against high-powered vacuums unless they're anti-static

Dishwasher

No

HP: heat and moisture can damage the electronics, and hot water can warp ABS keycaps

Washing the whole keyboard under a tap

No

Keychron: moisture can short out the electronics

Window cleaner such as Windex

No

Dell lists Windex among the cleaners to avoid on its equipment

WD-40

No

Keychron: it can damage plastic parts and gum up switches

Nail polish remover (acetone), solvents, abrasive powders

No

Logitech and Apple both rule them out

Melamine (magic eraser) sponge

Last resort on grimy plastic

Logitech allows it after a hidden-spot test

How often to clean a keyboard

Keychron suggests a quick wipe or blast of air every week and a deep clean with the keycaps off every three to six months, sooner if you eat at your desk. Logitech recommends cleaning anywhere from daily to monthly, especially if the keyboard is light coloured.

Fewer crumbs means fewer deep cleans. HP suggests a keyboard cover, not eating over the keyboard, and washing your hands before you type.

When it's not a DIY job

If a keyboard still doesn't work after a full 48-hour dry, HP suggests a repair service or a replacement. Washing keycaps or taking a keyboard apart isn't on Simply Maid's cleaning checklist; our regular cleans dust accessible surfaces and shelves. For the rest of the workspace, see How to Clean Your Desk and Keep It Organised; the screen and mouse have their own guides, How to Clean a Computer Screen and How to Clean a Mouse Pad (and Your Mouse).

Frequently asked questions

What is the gunk that builds up on a keyboard?

Mostly dust, crumbs and oil from your fingers. Keychron notes that together they can make keys feel sticky or stop them working properly.

Will cleaning fix keys that don't register?

Often, if dirt is the cause. Corsair says dirty keycaps and keyboards can stop a keyboard working properly, and HP links dust and crumbs to unresponsive keys. If a key still won't register after cleaning and a full dry, Logitech notes the switch underneath may be broken.

Last reviewed 6 October 2026 · Update history

Sources & References

Change log

Who wrote and edited this article, when its sources were checked, and what changed.

Current version

Written by
Huy Hoang
Edited by
Huy Hoang