How to Clean a Computer Keyboard
A keyboard accumulates debris faster than almost any other piece of equipment you use daily. Crumbs, dust, hair, skin cells, and liquid spills work their way between and under the keys over months and years of use. The result is keys that feel sticky or unresponsive, keys that do not register unless you press them harder than normal, and in some cases keys that stop working entirely because debris has physically blocked the switch mechanism underneath.
Quick cleaning (5 minutes, do this weekly)
This level of cleaning prevents buildup from becoming a problem. No tools required beyond what you already have.
- Turn the keyboard upside down and shake it gently over a trash can. You will be surprised how much falls out — crumbs, dust, hair, and small particles that have dropped between the keys. Tap the back of the keyboard a few times while it is inverted to dislodge anything stuck
- Use compressed air. Hold the can at a slight angle (not fully inverted) and blow short bursts between the keys. Work in rows from one side of the keyboard to the other so you push debris out rather than deeper in. Hold the nozzle about an inch from the keys. Long continuous bursts cool the air enough to produce liquid propellant spray — keep the bursts short
- Wipe the key surfaces. Dampen a microfiber cloth with isopropyl alcohol (70 percent or higher) and wipe across the tops of the keys and the frame around them. Do not pour or spray liquid directly onto the keyboard. The alcohol evaporates quickly and disinfects without leaving moisture behind
Moderate cleaning (30 minutes, do this monthly)
This reaches the debris that shaking and compressed air miss.
Cleaning gel or putty
Keyboard cleaning gel (a soft, sticky putty) presses into the gaps between keys and pulls out crumbs and dust when you lift it away. Press it gently between the keys, let it settle into the gaps, then peel it up. The debris sticks to the gel. Replace the gel when it becomes too dirty to be sticky. This is particularly effective for getting into the narrow spaces that compressed air blows past.
Cotton swabs for gaps
Dip a cotton swab in isopropyl alcohol and run it along the edges of each key where the key meets the keyboard frame. This area collects a grimy buildup of oils, dust, and dead skin that a cloth wipe does not reach. The alcohol dissolves the grime and the swab absorbs it. Use a fresh swab when the old one gets dirty — rotating through several is normal for a full keyboard.
Deep cleaning — removing keycaps (1 to 2 hours, as needed)
If keys feel sticky, do not register consistently, or visible grime is packed under the keys, a deep clean with keycap removal is the solution. This is for desktop keyboards only — do not remove keycaps from a laptop keyboard (see the laptop section below).
Before you start
- Take a photo of your keyboard layout before removing any keys. You will need this reference when putting the keys back. This is especially important for non-standard layouts or if you use a layout different from what is printed on the keys
- Unplug the keyboard or turn off the wireless connection. You do not want keystrokes registering while you work
Removing keycaps
Use a keycap puller — a small wire or plastic tool that hooks under the keycap and lifts it straight up. Keycap pullers cost a few dollars and prevent damage. If you do not have one, you can carefully use a flat tool (like a butter knife or flathead screwdriver) to gently pry under one edge of the keycap and lift, but wire pullers are safer and faster.
Standard-size keys (letters, numbers, function keys) pull straight up with moderate force. Larger keys (spacebar, shift, enter, backspace) have stabilizer bars or wires that connect the keycap to the keyboard plate. These require more care:
- Lift the keycap gently — if you feel resistance beyond the normal switch clip, there is a stabilizer attached
- Tilt the keycap slightly to unhook the stabilizer wire from the keycap inserts. Do not force it — the stabilizer wire bends easily and a bent wire causes the key to feel mushy or uneven when reinstalled
- Note how the stabilizer connects so you can reattach it correctly
Cleaning the keycaps
Place all removed keycaps in a bowl of warm water with a small amount of dish soap. Let them soak for 30 minutes to an hour. The soak loosens oils and grime. After soaking, scrub each keycap with an old toothbrush or small brush, rinse with clean water, and spread them on a towel to dry completely. Keycaps must be fully dry before reinstalling — any water left on the stem can interfere with the switch.
Cleaning the keyboard plate
With the keycaps removed, you can see the switches and the plate underneath. This is where the worst buildup hides.
- Shake out loose debris by turning the keyboard upside down and tapping
- Use compressed air to blow remaining particles out from around the switches
- Wipe the plate with a microfiber cloth dampened (not wet) with isopropyl alcohol. Work around each switch carefully
- Use cotton swabs dipped in alcohol to clean around individual switches where the cloth cannot reach
- Let everything dry completely before reassembling
Reassembling
Using your reference photo, press each keycap straight down onto its switch stem until it clicks into place. For stabilized keys, hook the stabilizer wire back into the keycap inserts first, then press the keycap onto the switch. Test every key after reassembly to make sure each one registers properly.
Cleaning a laptop keyboard
Laptop keyboards are fundamentally different from desktop keyboards. The keys sit on scissor mechanisms or butterfly mechanisms with very short travel, and the keycaps are fragile. Removing keycaps from a laptop risks breaking the tiny plastic clips that hold the scissors together — and replacement clips are difficult to find and install.
Safe laptop keyboard cleaning
- Turn the laptop off and unplug it. If the battery is removable, remove it
- Turn the laptop upside down (open, with the screen hanging over the table edge or resting on a soft surface) and shake gently to dislodge loose debris
- Use compressed air at a shallow angle. Hold the nozzle nearly parallel to the keyboard surface and blow across the keys rather than straight down into them. Blowing straight down can push debris under the keys and further into the laptop chassis
- Wipe key surfaces with a microfiber cloth lightly dampened with isopropyl alcohol. Do not let liquid drip between the keys — laptop keyboards often have a membrane layer underneath, but liquid can still reach the electronics beneath
- For stuck or sticky keys: Dip a cotton swab in isopropyl alcohol and carefully work it around the edges of the affected key. Let the alcohol seep under the key edge, then press the key repeatedly to work the alcohol into the mechanism. The alcohol dissolves the sticky residue and evaporates without leaving moisture
After a liquid spill
If liquid spills on a keyboard, speed matters. For a desktop keyboard:
- Unplug the keyboard immediately
- Turn it upside down to drain as much liquid as possible
- If it was water, let it dry completely (24 to 48 hours) before plugging it back in. It may work fine afterward
- If it was a sugary drink (soda, juice, coffee with sugar), the sugar will dry into a sticky residue that bonds keys. A full keycap removal and soak is necessary. The longer you wait, the harder the residue sets
For a laptop spill, the stakes are much higher because the liquid can reach the motherboard. Power off immediately, unplug, and turn the laptop upside down on a towel to drain. Do not turn it back on until it has dried for at least 48 hours. If it was a sugary liquid, professional cleaning of the internals is strongly recommended — sugar residue on a motherboard causes corrosion over time.
Keyboard cleaning help in Marion
If your keyboard has sticky or non-responsive keys after a spill, or if a laptop keyboard needs professional cleaning, LuxuriousComputers Repair in Marion can handle the cleaning or replacement without risking further damage.