The safest way to clean a Mac keyboard
Turn off your Mac completely before you start—do not just close the lid or put it to sleep. Unplug any external power adapter and wait a few minutes for the machine to cool. This prevents accidental key presses from sending commands while you work and protects the electronics underneath the keys.
Use compressed air as your first step. Hold the can upright, aim the nozzle at a 75-degree angle (not straight down into the keyboard), and use short bursts to blow debris out from between the keys. Work from the top of the keyboard toward the bottom so dust falls away from the machine rather than deeper into it. Do this over a trash can or outside to catch what comes out.
For visible dust on the key caps themselves, use a soft, dry microfiber cloth—the same kind you would use to clean a screen. Wipe each key gently. Do not use paper towels, tissues, or your shirt; these can leave fibers behind or scratch the keys if they have a glossy finish.
Key Takeaways
- Always power down your Mac completely and unplug it before cleaning to avoid accidental commands and electrical risk.
- Compressed air at a 75-degree angle removes dust between keys without pushing debris deeper into the keyboard.
- A microfiber cloth cleans visible dust from key caps; never use water, alcohol, or paper towels on Mac keyboards.
- Sticky keys need isopropyl alcohol on a cloth (not sprayed directly), applied sparingly to the affected key only.
- If liquid spilled inside the keyboard, do not power on the Mac—let it dry for at least 48 hours before attempting to use it.
Cleaning sticky or stuck keys
If a key sticks or does not spring back properly, the problem is usually dried liquid or food residue under the key cap. Do not pry the key cap off a modern Mac keyboard—the mechanism is fragile and the key may not reseat correctly. Instead, dampen a corner of your microfiber cloth with a small amount of isopropyl alcohol (70 percent concentration works well) and gently work it around the edges of the sticky key.
Press the key repeatedly while the cloth is in contact with it, allowing the alcohol to seep down the sides. This often dissolves the sticky substance without opening the keyboard. Let the key dry for a few minutes before using it again. If the key remains stuck after several attempts, stop and let it sit overnight—sometimes the alcohol needs time to work through the residue.
Never spray alcohol directly onto the keyboard or pour liquid of any kind onto it. Liquid that reaches the circuit board underneath can cause permanent damage, and Mac keyboards are not designed to be disassembled by users.
What to do if liquid spilled on your keyboard
Turn off your Mac when ready and unplug it. Do not try to dry it with a hair dryer or place it near a heat source—heat can drive moisture deeper into the electronics. Instead, tilt the keyboard slightly to let excess liquid drain away, then leave the Mac powered off in a dry room for at least 48 hours.
If the spill was water or a dilute liquid like tea, the keyboard may recover on its own as it dries. If the spill was sugary (soda, juice, syrup) or oily (milk, coffee with cream), the residue will eventually harden and cause keys to stick permanently. In that case, you will need to contact Apple or an authorized repair center, as the keyboard will likely need replacement.
Do not power on the Mac to test whether it still works until you are certain it is completely dry. Powering on a wet keyboard can short the circuit board and cause damage that would not have occurred if you had straightforward waited.
Cleaning the space between keys without compressed air
If you do not have compressed air on hand, a soft-bristled brush—like a clean toothbrush or a small anti-static brush—can dislodge dust between keys. Use very light pressure and brush from the top of the keyboard downward. This is slower than compressed air and less effective for fine dust, but it works in a pinch.
A vacuum cleaner with a brush attachment is not recommended for Mac keyboards. The suction can pull small components loose inside the keyboard, and the static electricity from a vacuum can damage sensitive electronics. Compressed air is safer because it only pushes air, not suction.
Cleaning the underside and edges of your Mac keyboard
If your Mac has a removable keyboard (some older MacBook models do), you can carefully lift it away from the base to clean underneath. Check your Mac model first—newer MacBooks have keyboards that are glued in place and should not be removed. If your keyboard is removable, lift it gently from the back edge and support it as you tilt it up. Use compressed air to blow dust out from the underside, then set it back down gently.
For the edges and gaps around the keyboard frame, a slightly damp microfiber cloth works well. Wring out the cloth so it is barely moist, not wet, and wipe along the seams. Do not let water drip into the gaps. Dry the area when ready with a dry cloth.
How often to clean your Mac keyboard
A light cleaning with compressed air once a month keeps dust from building up. If you eat or drink near your Mac, clean it more often—weekly if you regularly have food or beverages nearby. Dust and crumbs accumulate faster in those conditions and are more likely to cause sticky keys.
Pay attention to how your keyboard feels and sounds. If keys become harder to press, sound different when you type, or stick occasionally, that is a sign dust or debris has accumulated enough to affect performance. Clean it at that point rather than waiting for a scheduled cleaning day.
Products and tools you will need
A can of compressed air is the most important tool—brands like Falcon Dust-Off or DataVac work well and are available at most electronics retailers. A microfiber cloth (the kind sold for cleaning eyeglasses or screens) is essential; do not substitute paper towels or regular cloth. A small bottle of isopropyl alcohol at 70 percent concentration is useful for sticky keys but not required for routine cleaning.
If you want a brush, look for a soft-bristled anti-static brush designed for electronics, not a regular toothbrush. Some people use a small handheld vacuum designed for electronics, but compressed air is safer and more effective for Mac keyboards. Avoid all-in-one keyboard cleaning kits that include brushes, gels, or sprays—these are designed for generic keyboards and can damage Mac keys.
Frequently Asked Questions
Can I use a keyboard cleaning gel or putty on my Mac keyboard?
No. Keyboard gels and putties are designed for mechanical keyboards with exposed mechanisms. They can get stuck in the gaps of a Mac keyboard and harden, making the problem worse. Stick to compressed air and a microfiber cloth.
Is it safe to use a hair dryer to dry my keyboard after cleaning?
No. Heat can push moisture deeper into the electronics and damage components. If your keyboard got wet, let it air-dry in a cool, dry room for at least 48 hours before powering on the Mac.
What if I spilled coffee with milk in it on my keyboard?
Turn off and unplug your Mac when ready. The milk will eventually harden and cause keys to stick permanently. Let it dry for 48 hours, but expect that you will need to have the keyboard serviced or replaced by Apple. Do not attempt to clean it yourself once milk has dried.
Can I remove individual key caps to clean underneath them?
On most modern MacBooks, no—the key caps are part of the scissor mechanism and are not designed to be removed. On older MacBooks with removable keys, you can gently pry a key cap straight up, but only if you are confident you can reseat it correctly. If you are unsure, use compressed air instead.
How do I know if my keyboard has permanent damage from liquid?
After the keyboard has dried completely, power on your Mac and test each key. If a key does not respond, responds slowly, or sticks, that key or the circuit underneath it has been damaged. Contact Apple or an authorized repair center for a replacement keyboard.