Close-up of dusty black keyboard keycaps, illustrating how to clean a keyboard safely

How to Clean a Keyboard Safely: Membrane and Mechanical

Keyboards collect crumbs, dust, skin oils and the occasional splash of kopi. A dirty keyboard looks bad, can make keys stick, and is one of the most touched surfaces in any home office or SME. The good news is that cleaning one safely takes only a few minutes and some basic supplies.

This guide covers quick weekly cleaning, disinfecting, deep cleaning a mechanical keyboard, and what to do after a spill. The steps follow cleaning advice published by Apple and Logitech. Always check your own keyboard’s manual too, because some models have special instructions.

What you need

  • A soft, lint-free or microfibre cloth
  • Clean water
  • 70 percent isopropyl alcohol wipes, or disinfecting wipes that your keyboard maker allows
  • A can of compressed air or a manual air blower
  • A soft brush (a clean, dry paintbrush or makeup brush works)
  • For mechanical keyboards: a keycap puller, plus mild soap and a bowl of warm water for the keycaps

Avoid: bleach, hydrogen peroxide, acetone, solvents, abrasive powders or pads, and aerosol sprays aimed at the keyboard. Apple and Logitech both warn against these.

Before you start: power off and disconnect

This step is not optional. Liquids and power do not mix.

  1. Wired keyboard: unplug it from your computer.
  2. Wireless keyboard: switch it off. If it uses removable batteries, take them out.
  3. Laptop: shut down the laptop and unplug the charger.

1. Quick clean: shake out loose crumbs (1 minute)

  1. Hold the keyboard upside down over a bin or a sheet of newspaper.
  2. Give it a gentle shake and a few soft taps on the back.
  3. Do not bang it on the desk, as this can damage keys or the casing.

This step alone removes a surprising amount of debris. For a laptop, tilt it gently rather than holding it fully upside down, and support the screen.

2. Blow out dust between the keys (2 minutes)

  1. Use compressed air in short bursts between and around the keys.
  2. Keep the can upright. Logitech warns that tilting the can can spray freezing liquid.
  3. Work from one side of the keyboard to the other, so you push dust out rather than deeper in.
  4. If you do not have compressed air, a manual air blower or a soft brush also works.

3. Wipe the keys and case (3 minutes)

  1. Lightly dampen a soft, lint-free cloth with water. It should be damp, not wet.
  2. Wipe the tops of the keys and the keyboard frame.
  3. Never spray liquid directly onto the keyboard. Apply it to the cloth instead.
  4. Keep moisture away from openings, ports and gaps between keys.
  5. Dry with a second clean cloth.

This is the method Apple gives for its wireless and USB keyboards on its official cleaning guide.

4. Disinfect high-touch surfaces

For shared keyboards in an office, hot desk or family computer, disinfecting is worth doing regularly.

  1. Use a 70 percent isopropyl alcohol wipe. Apple also allows 75 percent ethyl alcohol wipes or Clorox Disinfecting Wipes on hard, non-porous surfaces such as the keyboard.
  2. Squeeze out excess liquid if the wipe is very wet.
  3. Gently wipe the keys and frame. Do not scrub hard.
  4. Let the surface air-dry fully before turning the keyboard back on.

Logitech says isopropyl alcohol and anti-bacterial wipes are generally fine on its keyboards, but recommends testing on a small hidden area first so you do not discolour the keys or remove the lettering. Avoid any product with bleach or hydrogen peroxide.

5. Deep clean a mechanical keyboard (30 minutes plus drying)

Mechanical keyboards have removable keycaps, which makes a thorough clean much easier. If you are not sure what type you have, our guide to mechanical keyboard switches explains the difference.

Step 1: Photograph the layout

Take a clear photo of your keyboard before removing anything. It makes putting the keycaps back much easier.

Step 2: Remove the keycaps

  1. Use a keycap puller and pull each keycap straight up. Do not twist or lever it sideways.
  2. Take extra care with long keys such as the space bar, Shift and Enter. They have stabilisers underneath, and you may prefer to leave them on.
  3. Do not pull the switches themselves unless your keyboard is hot-swappable and you know what you are doing.

Step 3: Clean the plate and switches

  1. Use compressed air, a manual blower or the cool setting on a hairdryer to clear debris.
  2. Brush gently around the switches with a soft brush.
  3. Wipe the plate with a barely damp cloth if needed. Do not let liquid drip into the switches.

Step 4: Wash the keycaps

  1. Soak the keycaps in warm water with a little mild soap.
  2. Gently rub off grime with a soft brush or cloth.
  3. Rinse in clean water.
  4. Lay them out on a towel and leave them to dry completely. Do not reattach damp keycaps.

Step 5: Reassemble

Press each keycap straight down onto its switch, using your photo as a guide. Test every key before you get back to work.

6. Cleaning membrane and laptop keyboards

Most office keyboards and all laptop keyboards use membrane or scissor-switch designs. Their keycaps are not meant to be removed often, and the clips break easily. Stick to steps 1 to 4: shake, blow out, wipe and disinfect.

A few keyboards are designed to be washed. For example, Logitech’s K310 washable keyboard can be hand-washed following Logitech’s specific instructions. Do not submerge any keyboard unless the manufacturer explicitly says it is washable.

7. What to do after a spill

  1. Act fast. Unplug or switch off the keyboard immediately. For a laptop, shut it down and unplug the charger.
  2. Turn the keyboard upside down so liquid drains out, not further in.
  3. Blot, do not rub, with a dry cloth.
  4. Leave it upside down to dry at room temperature, at least overnight, before testing it. Do not use a hot-air dryer.
  5. Sugary drinks such as teh or soft drinks leave sticky residue. On a mechanical keyboard, you may need to remove the affected keycaps and clean underneath.

Spills on a laptop are more serious, because the keyboard sits above the motherboard and battery. Stop using it and get it checked.

How often should you clean your keyboard?

  • Weekly: a quick shake and wipe. Logitech recommends regular weekly cleaning.
  • Weekly or more for shared keyboards: disinfect with alcohol wipes.
  • Every few months: a deep clean of a mechanical keyboard, or sooner if keys feel sticky.

Prevention helps too. Eating at your desk is the main cause of crumbs and sticky keys, and Logitech’s own blog on desk dining and keyboards makes the same point. The same cleaning habits work for your mouse; our computer mouse overview covers the basics.

When to get it repaired or call support

  • Keys still stick or do not register after cleaning.
  • Several keys stop working at once, or the keyboard types the wrong characters.
  • A laptop has had a liquid spill, even if it seems to work. Liquid can cause corrosion later.
  • The keyboard smells burnt, gets hot, or the battery is swollen. Stop using it straight away.

Check your warranty first. Contact the brand’s Singapore support or the retailer you bought from. Opening a device yourself may void the warranty.

Replacing and recycling an old keyboard in Singapore

If cleaning does not help, it may be time to upgrade. Our guides to the best keyboards for programmers and best wireless keyboards for Mac cover current options, or browse our keyboards section.

Do not throw your old keyboard in the rubbish chute. NEA’s e-waste page lists “keyboard and mouse” among the items accepted in e-waste bins run by Metalo, KGS and Virogreen. Check NEA’s where to recycle e-waste page for bin locations and slot sizes. Remove any batteries first, and recycle them separately in a battery bin.

Frequently asked questions

Can I use alcohol to clean my keyboard?
Yes, in most cases. Apple allows 70 percent isopropyl alcohol wipes on keyboards, and Logitech says isopropyl alcohol is generally fine. Test on a hidden spot first, use a wipe rather than pouring liquid, and avoid products with bleach or hydrogen peroxide.

Is compressed air safe for keyboards?
Yes, if you use short bursts and keep the can upright. Tilting the can can release cold liquid propellant onto the keyboard.

Can I wash my keyboard in water?
Only if the manufacturer says it is washable, like Logitech’s K310. Never submerge a normal keyboard. For mechanical keyboards, you can wash the removed keycaps in warm soapy water.

How do I clean under laptop keys?
Use compressed air and a soft brush. Avoid prising off laptop keycaps, as their clips break easily. If debris is stuck under a key, ask an authorised service centre.

How often should I disinfect a shared office keyboard?
At least weekly, and more often for hot desks or shared family computers. Use a 70 percent isopropyl alcohol wipe on the keys and frame, then let it dry before use.

Similar Posts