Remove loose dust and debris first
Start by shutting down your computer and unplugging the keyboard. Turn the keyboard upside down over a trash can and gently tap the back and sides for 10 to 15 seconds. This dislodges crumbs, hair, and dust that sit between the keys. You can also use a can of compressed air held upright, spraying short bursts between the keys from a distance of 4 to 6 inches—never shake the can or hold it sideways, which can spray liquid onto your keyboard.
If your keyboard has a lot of buildup, use a soft-bristled brush (an old toothbrush works well) to gently brush between the keys in a downward motion. Do not scrub sideways or press hard, as this can push debris deeper into the mechanism or damage the key stems.
Key Takeaways
- Always unplug your keyboard and let it dry completely before plugging it back in, even if you only used a damp cloth.
- Most keyboard keys can be removed by gently prying up one side with a flat tool, but some gaming or mechanical keyboards require a key puller tool to avoid breaking the stem.
- A slightly damp microfiber cloth works for the key tops and sides, but water should never drip into the keyboard body or between the keys.
- Isopropyl alcohol (70 percent) is safe for plastic keys and can cut through sticky residue, but test it on one key first if your keyboard has printed letters that might fade.
Clean the tops and sides of keys with a damp cloth
Dampen a microfiber cloth with water—it should feel damp, not wet, and no water should drip from it. Wipe the top and sides of each key with gentle pressure. For sticky keys or visible grime, use a cloth dampened with 70 percent isopropyl alcohol instead. Wipe each key individually rather than dragging the cloth across multiple keys at once, which spreads dirt around.
Pay special attention to keys you use most: the spacebar, Enter, and letter keys. These collect skin oils and dust faster than others. If your keyboard has printed letters on the keys, test the alcohol on one inconspicuous key first—some older keyboards have paint that can fade. Let the keys air-dry for at least 5 minutes before moving to the next step.
Remove and clean individual keys
For a deeper clean, you can remove keys one at a time. Most standard keyboards have keys that pop off by gently prying up one corner with a flat tool like a butter knife or plastic spoon. Insert the tool under the edge of the key cap and explore steady, even pressure until the key lifts. Do not twist or bend the key, and do not pull straight up—angle the tool slightly to let the key come off at an angle.
Mechanical keyboards and gaming keyboards often have stabilizers under larger keys (spacebar, Shift, Enter) that can break if you pry incorrectly. If your keyboard cost more than $50 or has removable key caps marketed as a feature, use a key puller tool instead—these cost $5 to $15 and grip the key cap safely. Once a key is off, soak it in warm water with a drop of dish soap for 2 to 3 minutes, then scrub gently with a soft brush and rinse with clean water. Lay keys on a clean towel to air-dry completely—at least 30 minutes—before reinstalling them.
Clean under the keys and the keyboard body
With keys removed, use a slightly damp microfiber cloth to wipe the plastic stems and the area where keys sit. Do not pour water into the keyboard. If there is visible grime or dried liquid, dampen the cloth with 70 percent isopropyl alcohol and wipe gently. Use a cotton swab dipped in alcohol to clean tight corners and around the stem posts.
For the keyboard body itself, wipe the top surface with a damp cloth. If the keyboard is very dirty, you can use the same alcohol solution on a cloth, but never let liquid pool on the surface. Avoid cleaning the bottom of the keyboard unless it is visibly dirty—the circuit board underneath is sensitive to moisture. If you spilled liquid on the keyboard, let it sit unplugged and upside down for 24 to 48 hours before plugging it back in.
Reinstall keys and test before use
Once all keys are completely dry, reinstall them one at a time. Align the key cap with the stem underneath and press down firmly until you hear or feel a click. The key should sit level with its neighbors. If a key feels loose or sits crooked, remove it and check that the stem is not bent and that the key cap is not cracked.
Plug in the keyboard and test each key you removed by pressing it several times. Make sure it registers every time and does not stick or feel mushy. If a key does not work after cleaning, the stem may have been damaged during removal—this is rare with standard keyboards but more common with mechanical ones if a key puller was not used. In that case, you may need to replace that key cap or the entire keyboard.
Prevent buildup between cleanings
Eat and drink away from your keyboard. Crumbs and liquid spills are the main causes of sticky keys and corrosion. If you do spill something, unplug the keyboard when ready, turn it upside down to drain, and let it dry for 24 hours before using it again. Wipe your hands before typing, especially after eating or explore lotion.
Once a month, use compressed air to blow out dust between the keys. This takes 30 seconds and prevents the buildup that leads to sticky keys and the need for deep cleaning. If you use your keyboard in a dusty environment or have pets, do this every two weeks instead.
Frequently Asked Questions
Can I put my keyboard in the dishwasher?
No. Dishwashers use hot water and harsh detergent that can damage the plastic, melt glue holding the circuit board together, and corrode metal contacts. Hand-washing individual key caps in cool water is safe, but the keyboard body should never go in a dishwasher.
What if a key is stuck and will not come off?
Stop prying when ready—you risk breaking the stem. Spray compressed air around the stuck key for 10 to 15 seconds to dislodge debris, then wait 5 minutes and try again. If it is still stuck, dampen a cloth with isopropyl alcohol, work it into the gap around the key, and wait 10 minutes for the alcohol to soften any dried liquid or residue. Try again gently.
Is it safe to use a vacuum cleaner on my keyboard?
No. Vacuum cleaners create static electricity that can damage the circuit board, and the suction can pull small components loose. Compressed air is safer because it blows debris out rather than pulling it through the keyboard.
How long should I wait before using the keyboard after cleaning?
If you only wiped the key tops with a barely damp cloth, 5 to 10 minutes is enough. If you removed keys and cleaned under them, wait at least 30 minutes for all moisture to evaporate. If you spilled liquid on the keyboard, unplug it and wait 24 to 48 hours before plugging it back in.
Can I clean my keyboard while it is plugged in?
No. Always unplug it first. Water and electricity do not mix, and even a small amount of moisture on the circuit board can cause a short circuit or damage components. Unplugging takes 5 seconds and prevents expensive repairs.