How to Clean a Keyboard: 10 Steps for Dust and Grime
Author: Rasmus

How to Clean a Keyboard: 10 Steps for Dust and Grime


Quick answer

Power off and disconnect the keyboard first. Turn an external keyboard upside down and tap it gently, use a soft brush or controlled compressed air for loose debris, then wipe the keys with a barely damp lint-free cloth. Never spray liquid into the keyboard, and follow the device maker's instructions before removing laptop keys or using alcohol.

A keyboard collects hand oils, dust and crumbs. A good clean does not require flooding it with disinfectant or pulling every keycap. Start dry: disconnect the keyboard, remove loose debris and wipe the surfaces before considering a deeper, manufacturer-approved clean.

This guide covers external USB and Bluetooth keyboards, laptop keyboards and mechanical keyboards. The owner’s manual wins whenever it gives model-specific advice. If you are resetting a whole workstation, the home office setup guide can help you clean the desk around the keyboard without moving dust back onto it.

1. Identify the keyboard before touching it

Look at what you are cleaning. An external keyboard can usually be unplugged or have its batteries removed. A wireless keyboard may have a power switch, a removable battery compartment or a rechargeable cell. A laptop keyboard is part of the computer and needs a full shutdown, not merely a closed lid or sleep mode.

Also note whether it is a standard membrane keyboard, a mechanical keyboard with removable keycaps, a low-profile laptop keyboard or a fabric-covered accessory. A keycap that comes off easily may still have stabilizers, scissor mechanisms or seals that an improvised deep clean can damage.

2. Power off and disconnect everything

Turn off an external keyboard and unplug its USB cable. Remove batteries if the manual says they are removable. For a Bluetooth keyboard, switching off Bluetooth on the computer is not a substitute for powering down the accessory. For a laptop, shut it down completely, unplug the charger and disconnect accessories.

Apple’s general cleaning guidance says to unplug external power sources, devices and cables, keep liquids away from openings, and avoid spraying cleaner directly onto a product. Microsoft likewise says to disconnect its keyboard, or remove batteries from a wireless device, before cleaning. Treat this as the non-negotiable first step.

If a drink has just spilled, stop normal cleaning. Disconnect power immediately if you can do so safely, keep the device off and follow the manufacturer’s liquid-damage instructions. Do not reconnect it simply because the outside feels dry; liquid can remain below the keys.

3. Gather a small, safe cleaning kit

You need less than you probably think:

  • A soft, lint-free microfiber cloth
  • A clean, dry soft brush or an approved keyboard brush
  • Compressed air with a nozzle, if your keyboard maker permits it
  • A second dry cloth
  • A keycap puller only for a compatible external mechanical keyboard
  • A tray or phone photo to keep removable keycaps in order

Do not use paper towels that shed fibres, abrasive pads, household spray, bleach, window cleaner or a soaking wet cloth. Apple specifically warns against aerosol sprays, solvents, abrasives and cleaners containing hydrogen peroxide for its products. A stronger chemical is not automatically a cleaner keyboard.

4. Remove loose debris from an external keyboard

Hold an unplugged external keyboard upside down over a clear surface and tap it gently. Microsoft recommends this for removing loose dirt and debris. Use small movements rather than shaking hard; the aim is to let crumbs fall out, not to stress the switches or cable socket.

Next, use a soft brush around the key edges. Work from one side to the other and lift debris away from the board. If you use compressed air, keep the can controlled and follow its instructions. Short bursts are easier to direct than one long blast.

A vacuum with a dusting brush can be an alternative for the top surface. Keep suction gentle and do not press the nozzle against the keycaps, switches or openings. Microsoft lists gentle vacuuming with a dusting brush as an alternative to compressed air.

5. Use a model-specific method for a laptop

Laptop keyboards need more restraint because the switches sit above the computer’s internal electronics. Do not turn the entire laptop upside down, pour anything over the keys or use a household vacuum at full power.

For supported MacBook and MacBook Pro models, Apple’s keyboard procedure uses compressed air while the notebook is held at about a 75-degree angle. The can’s straw should be kept about half an inch, or 1.3 centimetres, from the keyboard, the spray should move from left to right, and the can should not be inverted. Apple then repeats the process with the notebook rotated to each side. Follow that documented sequence only when it applies to your model; another manufacturer may specify a different method.

For any laptop, use a dry soft brush first and check the support page for the exact model before using air, removing keys or cleaning around a spill. If a key is still unresponsive after the approved surface clean, service is safer than prying at the mechanism.

6. Decide whether keycaps may come off

For most laptop keyboards, leave the keycaps in place. A scissor mechanism can break or become misaligned, and a missing key can turn a small cleaning job into a repair.

An external mechanical keyboard is different, but removable does not mean universal. If the manual permits keycap removal, photograph the layout first, unplug the board, lift caps with the right puller and keep them in a tray. Clean the exposed board with a dry brush or controlled air. Do not drip liquid into the switches.

If the manufacturer permits washing the keycaps separately, keep that wash separate from the keyboard itself and wait until every cap is completely dry before reinstalling it. Never submerge the assembled keyboard or assume a splash-resistant model is waterproof.

7. Wipe the keys and palm rest

Put a small amount of water on the cloth, then wring it until it is barely damp. Wipe the tops and sides of the keys, the palm rest and the external case. Use a clean section of cloth as it picks up oil. Finish with a dry cloth so moisture is not left around seams.

Microsoft recommends a lint-free cloth or cotton swab lightly dampened with mild soap and water for its keyboard. Apple recommends a soft, lint-free cloth and says not to get moisture into openings. Those instructions point to the same practical rule: the cloth may be damp; the keyboard should never be wet.

For a hard, nonporous surface where the manufacturer allows it, use the specified alcohol wipe or solution on the cloth rather than pouring or spraying it. Apple permits a 70 percent isopropyl alcohol wipe on certain hard, nonporous surfaces, while Microsoft specifies an isopropyl alcohol solution of 70 percent or less for its mice and keyboards. Do not transfer that permission to fabric, leather, uncoated surfaces or an unknown device.

8. Clean cables, batteries and removable accessories

Wipe the keyboard cable from end to end with a slightly damp lint-free cloth, then dry it. Keep moisture away from USB plugs, charging ports, battery doors and wireless switches; do not spray the cable or socket. For a removable battery compartment, wipe accessible plastic only and let it dry before inserting batteries. Stop if you see corrosion, swelling, a cracked cable or heat damage.

9. Treat sticky or unresponsive keys as a symptom

A key that feels sticky may have surface grime, but it may also have dried liquid or a damaged switch underneath. Press it normally to compare its travel with nearby keys; do not force it, twist it or flood the gap with cleaner. Repeating dry debris removal and a careful exterior wipe is reasonable. If the key remains stuck or unresponsive, arrange support for the exact keyboard model.

After a spill, keep the keyboard disconnected even if several keys appear to work. Liquid may migrate later or leave residue that corrodes contacts. The laptop-choosing guide includes keyboard and return-policy checks that are useful when a damaged laptop needs replacement, but cleaning should not be used to hide a hardware fault.

10. Dry, reconnect and test one row at a time

Leave the keyboard disconnected until the surfaces and any approved removable parts are fully dry. Do not use a hair dryer or place the keyboard on a radiator; heat can damage plastics, finishes or batteries. Reconnect an external keyboard, turn it on and test every letter row, modifier, arrow key, number pad, media key and indicator light. On a laptop, test the keys in a simple text field without sending messages or commands by accident.

If something now feels loose, repeats, fails to register or behaves erratically, disconnect the keyboard again and check the manufacturer’s troubleshooting instructions. For quick cleaning, Microsoft suggests monthly care or cleaning whenever needed. A short dry-brush pass after eating at the desk is better than waiting for crumbs to harden under the keys.

If a physical key is failing and you need another way to capture what is on screen, the screenshot shortcuts guide covers device-specific alternatives.

Hero image: W.carter, CC BY-SA 4.0, via Wikimedia Commons.

Sources

Frequently Asked Questions

What is the safest way to clean a keyboard?

Power it off and disconnect it, remove loose debris without forcing the keys, then wipe the surface with a soft lint-free cloth that is only slightly damp. Keep all liquid out of openings and let the keyboard dry before reconnecting it.

Can I use rubbing alcohol to clean a keyboard?

Only if the keyboard maker permits it. Apple allows a 70 percent isopropyl alcohol wipe on certain hard, nonporous surfaces, while Microsoft specifies an isopropyl alcohol solution of 70 percent or less for its mice and keyboards. Put it on the cloth or wipe, never directly on the device.

How do I clean under laptop keyboard keys?

Start with the laptop maker's instructions. Use the approved compressed-air method or a soft brush, and do not pry off laptop keycaps unless the manufacturer documents that procedure for your exact model. A key that remains unresponsive after cleaning may need service.

How often should I clean my keyboard?

Do a quick debris pass whenever crumbs or dust are visible and wipe the touch surfaces as needed. Microsoft suggests cleaning its keyboards monthly or whenever needed; a keyboard used around food may need more frequent light cleaning.

Written by Rasmus

Independent writer of practical how-tos and guides. Every article is written to be genuinely useful — no filler, no recycled content. More about lejnel.com.

Next article: How to Clean a Microwave: 10 Steps for Grease and Odor