How to clean a keyboard without damaging it
Routine cleaning starts with the keyboard powered off, gentle shaking, compressed air and a microfiber cloth; removable keycaps should be soaked only after removal and only when wiping is insufficient.
Start with the keyboard powered off and unplugged. Gently shake it to dislodge loose crumbs, then use compressed air or a rechargeable electric blower for gaps. Keep canned air upright, and use cleaning gel when debris is difficult to reach. A dry, lint-free microfiber cloth handles the key surfaces.
Wipe the tops and sides of the keys with the cloth. If the manufacturer permits isopropyl alcohol, apply a small amount to a cotton swab or cloth so it is damp rather than dripping. Let the keyboard dry completely before reconnecting it or turning a laptop back on.
Mechanical keyboards with removable keycaps can be cleaned underneath when surface cleaning is not enough. Photograph the layout first, unplug the keyboard, use a keycap puller, and take extra care with larger caps such as the space bar. Clean the exposed base and switches without taking the switches apart.
If wiping the detached keycaps is insufficient, soak only the keycaps in warm water with a drop of dish soap for up to an hour. Keep the keyboard body and switches out of the water, rinse the caps, and let every part dry completely—potentially overnight—before reassembly. A deep soak may be useful every few months or when caps feel sticky, but it is unnecessary for a few crumbs.