How to clean a keyboard

Most dead and sticking keys are a cleaning job rather than a repair, provided the cleaning is done the right way round.

Before anything else

Unplug the keyboard, or shut down and disconnect a laptop and remove the battery if it is removable. Cleaning a powered keyboard risks both a short and a great many accidental keystrokes.

Take a photograph of the layout before removing any keycaps. It is much easier than working out afterwards where the punctuation goes.

Routine cleaning

  • Turn the keyboard upside down and tap it firmly. This removes more than most people expect.
  • Compressed air in short bursts at a shallow angle, working in one direction so debris leaves rather than migrating.
  • A soft brush between the caps for the dust that air does not shift.
  • A cloth very lightly dampened with isopropyl alcohol for the caps themselves. Dampen the cloth, never the keyboard.

Deeper cleaning on a mechanical keyboard

Keycaps on a mechanical keyboard pull straight off with a wire puller, and can be washed in warm water with a little washing-up liquid. Let them dry completely, which takes longer than it looks; trapped water inside a cap will find its way onto the switch.

With the caps off, compressed air and a brush reach the plate. Do not soak the board itself, and keep liquid away from the controller and any exposed connectors.

Switches themselves can be cleaned with contact cleaner made for electronics, applied very sparingly. Anything that leaves a residue, including household cleaners and general lubricants, will make the problem worse within weeks.

After a spill

Disconnect immediately and turn the keyboard upside down to drain. Speed matters more than technique here.

Water on a membrane keyboard is often survivable if it dries fully before power returns, and full drying takes a day or two, not an hour. Anything sugary or alcoholic is much worse, because it leaves a conductive, sticky residue as it dries.

On a laptop, a spill reaches components below the keyboard, and the correct move is to power down, disconnect and stop. A laptop that has taken a sugary drink is a professional repair, not a cleaning job.

Do not use a hairdryer on a wet keyboard. Heat warps keycaps and plastic clips, and pushes liquid further into the assembly.

Then test it

Once everything is dry and reconnected, run through every key in the keyboard tester. Cleaning occasionally frees one key and disturbs another, especially if keycaps were removed and reseated, so a full pass is worth the minute it takes.

Recommended Keyboard Tools & Hardware

Fix stuck switches, clean key chatter, and upgrade your mechanical keyboard typing experience.

KEYBOARD GEAR
Custom Keyboard Pro Keyboard

Keychron Hot-Swappable Custom Mechanical Keyboard (QMK/VIA)

Acoustic-dampened gasket-mounted mechanical keyboard with pre-lubed mechanical switches, South-facing RGB, and full QMK/VIA key remapping. Hot-swappable PCB allows switch replacement in seconds without soldering.

Replaces broken membrane boards with true N-Key Rollover and zero latency ghosting
Switch Modding Modder Essential

Krytox 205g0 Switch Lubricant & Complete Keyboard Modding Kit

Authentic high-viscosity PFPE grease paired with GPL 105 spring oil, 4-prong precision stem picker, switch opener tool, and fine nylon brushes for tuning mechanical switches and stabilizers.

Eliminates scratchy friction and spacebar rattle for ultra-smooth keystrokes
Maintenance & Repair Stuck Key Fix

Multi-Function High-Density Keyboard & Keycap Cleaning Kit

Precision electronics cleaning kit featuring high-density nylon brush, silicone crevice pick, flocking sponge, keycap remover, and residue-free cleaning solution.

Resolves 90% of stuck keys, key chatter, and unresponsive switches caused by dust
Switch Testing Switch Tester

Mechanical Switch Tester & Sampler Unit (Multi-Brand Switches)

Clear acrylic desk switch testing base mounted with genuine linear, tactile, and clicky switches (including Red, Brown, Blue, and Black variants) with clear keycaps.

Lets you feel exact actuation force and sound profiles before ordering full switch packs
Ergonomics Comfort Must

Ergonomic Memory Foam Wrist Rest with Cooling Lycra Fabric

High-density slow-rebound memory foam wrist support cushion with breathable moisture-wicking fabric and textured non-skid rubber base for full-size, TKL, and compact keyboards.

Relieves repetitive strain and keeps wrists in an aligned neutral typing plane
Modding Tool Essential Tool

2-in-1 Stainless Steel Wire Keycap Puller & Switch Remover

Durable dual-purpose modding tool with bend-resistant stainless steel wire loops for pulling keycaps and hardened alloy tongs for pulling hot-swap switches safely from PCB sockets.

Extracts keycaps without scratching plastic walls or bending hot-swap copper pins

Mechanical Keyboard Troubleshooting & Diagnostic Matrix

Common mechanical switch failures, root hardware causes, and verified fixes for chatter and stuck keys.

Observed Fault Root Cause Diagnostic Test Corrective Hardware Action
Key Chatter / Double Letters Dust, crumb buildup, or copper leaf contact oxidation Rapid single-key strike test in tester tool Blow compressed air or flush switch with quick-dry contact cleaner.
Dead / Completely Unresponsive Key Bent hot-swap pin or broken PCB solder trace Check neighboring matrix keys for common trace failure Pull switch with switch puller, straighten pin, or reflow solder joint.
Sticky / Sluggish Key Return Spilled beverage syrup or dried sugar residue on sliders Slow deliberate press to feel scratchy friction resistance Remove keycap, clean stem with 99% isopropyl alcohol, and relube.
Ghosting / Missing Simultaneous Keys 2-Key Rollover (2KRO) membrane matrix blocking Press Shift + W + D + Space simultaneously Upgrade to true N-Key Rollover (NKRO) mechanical keyboard.
Rattly / Hollow Spacebar Sound Loose tolerance between stabilizer wire and nylon stem housing Lightly tap left and right edges of spacebar listening for ticking Apply Krytox 205g0 or dielectric grease to wire bends.
Wrist Fatigue & Palm Aches Excessive upward wrist extension angle while typing Observe wrist angle relative to desk tabletop Add an ergonomic memory foam wrist rest to achieve neutral forearm posture.
TECH TIP
Switch Chatter and Contact Leaf Oxidation: Mechanical switches register keystrokes when the slider presses two flexible copper alloy leaves together. Over months of use, airborne dust, skin oils, or humidity create microscopic resistive films on the contact surfaces. When the contact makes connection, the electrical voltage bounces rapidly instead of transitioning cleanly, causing the keyboard controller firmware to register double or triple characters per press. Before desoldering a switch, try depressing the stem fully and dispensing one quick burst of quick-drying zero-residue electronic contact cleaner directly into the housing. In 90% of cases, this dissolves the oxidation and cures key chatter immediately.

As an Amazon Associate we earn from qualifying purchases. Affiliate Disclosure

Run the keyboard test