Soldermag

How to Clean a Mechanical Keyboard (Without Breaking Anything)

Clean your mechanical keyboard properly. Keycap removal, switch cleaning, stabilizer maintenance, and what not to use.

·6 min read
How to Clean a Mechanical Keyboard (Without Breaking Anything)

Mechanical keyboards collect more debris than any other piece of desk hardware. Hair, crumbs, dust, skin oils, and mystery particles accumulate under keycaps and between switches. After six months of daily use, the inside of your keyboard probably looks like an archaeological dig.

The good news: cleaning a mechanical keyboard is straightforward if you do it in the right order. The bad news: doing it wrong can damage switches, scratch keycaps, or break stabilizers. Here is the safe way.

What you need

Essential:

  • A keycap puller (wire-style is safest; most mechanical keyboards include one)
  • Compressed air or an electric air duster
  • A soft brush (old toothbrush works perfectly)
  • Microfiber cloth
  • Isopropyl alcohol (90% or higher)
  • A bowl or container for soaking keycaps

Nice to have:

  • Switch puller (if your keyboard is hot-swap)
  • Cotton swabs (Q-tips) for tight spots
  • Keyboard lubricant (Krytox 205g0) if you plan to lube stabilizers while you are in there
  • A small Phillips screwdriver (if you want to open the case)

What not to use:

  • Regular water directly on the PCB
  • Household cleaners (Windex, all-purpose spray)
  • A vacuum cleaner directly on switches (the suction can unseat switch components)
  • Dishwasher (yes, people try this; no, it is not a good idea for most keyboards)

Step 1: Unplug and photograph your layout

Unplug the keyboard. If it is wireless, turn it off and remove the battery if possible.

Before pulling any keycaps, take a photo of your keyboard layout. This sounds unnecessary until you are staring at a bare board trying to remember where the right bracket key goes. Custom layouts, split spacebars, and non-standard bottom rows make this even more important.

Step 2: Remove the keycaps

Use a wire keycap puller. Slide the wires under the keycap on opposite sides, gently squeeze, and pull straight up. The keycap should pop off cleanly.

Important notes:

  • Pull straight up, not at an angle. Angled pulls can bend switch stems.
  • For stabilized keys (spacebar, enter, shift, backspace), pull more gently. These keys have stabilizer inserts that can pop out if yanked. Wiggle slightly while pulling straight up.
  • On low-profile keyboards, keycaps are more delicate. Use even less force.
  • Group keycaps in a container as you remove them. A zip-lock bag or bowl works.

Step 3: Clean the keycaps

Fill a bowl with warm (not hot) water and a small amount of dish soap. Drop the keycaps in and let them soak for 30 to 60 minutes. This loosens oils and grime.

After soaking, rub each keycap gently with your fingers or a soft brush to remove remaining residue. Rinse with clean water.

Drying is critical. Spread keycaps on a towel and let them air dry completely. This takes at least 2 to 3 hours, or overnight to be safe. Putting wet keycaps back on switches is a good way to corrode contacts and create intermittent key failures.

For PBT keycaps: These tolerate warm water and soap with no issues.

For ABS keycaps: Same process, but avoid hot water. ABS can warp at high temperatures. Warm water is fine.

Step 4: Clean the switch plate and PCB

With keycaps removed, you can see the switches and the plate. This is where the real grime hides.

  1. Blow out debris. Hold the keyboard upside down and tap the back gently to shake loose particles. Then use compressed air or an electric air duster to blast debris from between switches. Short bursts, not sustained blasts.

  2. Brush between switches. Use a soft brush (old toothbrush) to sweep debris that compressed air missed. Brush toward the edges of the board so particles fall out rather than settling deeper.

  3. Wipe the plate. Dampen (not wet) a microfiber cloth with isopropyl alcohol and wipe the plate surface between switches. The alcohol evaporates quickly and does not leave residue.

  4. Clean around switch housings. Use a cotton swab dipped in isopropyl alcohol to clean around individual switch housings. This removes the oils and dark grime that accumulates at the base of each switch.

Do not: Pour or spray any liquid directly onto the PCB. Apply alcohol to a cloth or swab first, then wipe. Excess liquid can damage solder joints and electronic components.

Step 5: Clean the stabilizers (while you are in there)

Stabilizers are the wire-and-housing mechanisms under your larger keys. They collect more grime per square millimeter than anything else on the keyboard because they have moving parts in direct contact with your most-pressed keys.

Quick clean (no disassembly):

  1. Dip a cotton swab in isopropyl alcohol
  2. Clean the stabilizer housing and wire where visible
  3. If the stabilizers feel scratchy or rattly, apply a thin layer of dielectric grease or Krytox 205g0 to the wire ends and the inside of the housing where the wire contacts plastic

Deep clean (requires removing stabilizers): This is only practical on hot-swap keyboards where you can remove the switches above the stabilizers. If your switches are soldered, stick with the quick clean.

For a detailed guide to stabilizer types and modding, our mechanical keyboard guide covers the specifics.

Step 6: Clean the case

If your keyboard case is visibly grimy:

  1. Remove the PCB assembly from the case (usually 4 to 8 screws on the bottom)
  2. Wipe the case interior with a damp microfiber cloth
  3. For aluminum cases: isopropyl alcohol on a cloth works well
  4. For plastic cases: mild soap and water, then dry thoroughly
  5. Clean any foam or dampening material by patting with a dry cloth (do not submerge foam)

Reassemble in reverse order. Make sure no screws are missing.

Step 7: Reassemble and test

  1. Confirm keycaps are completely dry
  2. Place keycaps back on switches, pressing straight down until they click into place
  3. For stabilized keys, align the stabilizer inserts first, then press the keycap down
  4. Refer to your photo from Step 1 for correct placement
  5. Plug in and test every key using a key tester website (keyboard-tester.com or similar)

If a key does not register after cleaning, the most common cause is a keycap not fully seated. Press it down firmly. If it still does not work, remove the keycap and check the switch stem for damage or debris.

How often to clean

Monthly (light clean): Flip the keyboard upside down and tap out debris. Wipe keycap surfaces with a microfiber cloth. Takes 2 minutes.

Every 3 to 6 months (medium clean): Remove keycaps, blow out debris, wipe the plate. Takes 20 minutes plus drying time.

Yearly (deep clean): Full keycap wash, stabilizer cleaning, case disassembly if needed. Takes 30 minutes plus overnight drying.

If you eat at your desk (no judgment), increase frequency. Food particles between switches accelerate grime buildup significantly.

What to do if you spill liquid on your keyboard

Speed matters. Do this immediately:

  1. Unplug the keyboard (or turn off wireless)
  2. Flip it upside down and let liquid drain out
  3. Remove all keycaps
  4. If hot-swap, remove switches to expose the PCB
  5. Blot the PCB with paper towels
  6. Let it dry for at least 48 hours before plugging in

For sugary liquids (soda, juice, coffee with sugar): After the initial drain, you may need to clean affected switches individually with isopropyl alcohol. Sugar residue causes sticky switches and eventual failure if left untreated.

For water: Less damaging, but still let everything dry completely. Water plus electronics plus impatience equals a dead PCB.

Cleaning supplies worth buying

If you maintain mechanical keyboards regularly, a few dedicated supplies make the job faster:

  • Electric air duster (rechargeable, replaces canned air): Pays for itself after 3 to 4 uses
  • Wire keycap puller (not the cheap plastic ring style): Less likely to scratch keycaps
  • Isopropyl alcohol 90%+: The higher the percentage, the faster it evaporates and the less moisture contacts electronics

For keyboard hardware recommendations, see our best mechanical keyboards roundup. And if a deep clean inspires you to upgrade your whole workspace, our desk setup essentials guide covers the rest.

Keychron Q1 Pro

See today's price