How to Fix a Keyboard After a Liquid Spill: Step-by-Step
In this article
Unplug the keyboard immediately, turn it upside down, and let it dry completely before testing. Most keyboards survive a spill if you cut power fast and remove the liquid before it reaches the circuitry. The steps below cover both membrane and mechanical keyboards, and they work for water, coffee, soda, and most other common liquids.
What You'll Need
- Distilled water (for sticky or sugary spills)
- Isopropyl alcohol (90% or higher) and cotton swabs
- Clean, lint-free cloths or paper towels
- A keycap puller (mechanical keyboards) or a small flathead screwdriver
- A shallow container or bowl for keycaps
- Compressed air (optional)
- A well-ventilated, dust-free drying area
Step-by-Step
- Cut power immediately. Unplug the USB cable or switch the keyboard off. If it is wireless, remove the batteries. Do not press any keys or try to test it while wet.
- Turn it upside down. Hold the keyboard at an angle so the liquid drains away from the circuitry. Shake gently. Do not flip it right-side up until it is dry.
- Blot visible liquid. Use a clean cloth to soak up liquid on the surface and between keys. Avoid spreading it into the case.
- Remove keycaps (mechanical only). Use a keycap puller to pull every keycap. Soak sticky keycaps in a bowl of warm water with a drop of dish soap, then rinse and air-dry. For membrane keyboards, skip this step; the keycaps are not designed to be removed.
- Clean sticky residue. If the spill was soda, juice, or coffee, dampen a cloth with distilled water and dab the exposed areas. For stubborn residue, use isopropyl alcohol on a cotton swab. Do not flood the keyboard.
- Dry thoroughly. Place the keyboard upside down on a dry towel in a warm, ventilated area. A fan blowing across it helps. Leave it for at least 24 to 48 hours. Do not use a hair dryer on hot settings; heat can warp plastic and damage components.
- Reassemble and test. Once completely dry, replace the keycaps or reconnect the keyboard. Plug it in and test every key using an online keyboard tester or a text document. If keys work, you are done.
Common Mistakes
- Testing too soon. Powering a wet keyboard can short the circuit board. Wait the full drying time.
- Using a hair dryer on high heat. Heat warps keycaps and can melt internal plastic. Use cool air only, and keep it at a distance.
- Skipping the keycap removal. Liquid trapped under keycaps keeps the switch wet and causes sticky keys later.
- Rubbing instead of blotting. Rubbing pushes liquid deeper into the keyboard.
- Using tap water for cleaning. Minerals in tap water leave residue. Use distilled water or isopropyl alcohol.
Tips
- Take a photo of the keyboard layout before removing keycaps so you can put them back correctly.
- If the spill was sugary, clean the affected area with isopropyl alcohol to prevent sticky keys.
- For laptops, do not attempt to remove the keyboard yourself unless you are comfortable with the disassembly; instead, tilt the laptop and seek professional help.
- Keep the keyboard upside down during drying to let gravity pull liquid away from the electronics.
- After drying, test with a keyboard tester website before reassembling fully.
Troubleshooting
If some keys still do not work after drying, the membrane or switch may be damaged. For mechanical keyboards, you can replace individual switches if they are hot-swappable. For membrane keyboards, the membrane sheet may need replacement, which is often not cost-effective. If the keyboard is not detected at all, try a different USB port or cable. If it is wireless, check the batteries. If the keyboard types wrong characters, the layout may have changed; check your operating system's keyboard settings. If liquid reached the circuit board, corrosion may have formed; clean with isopropyl alcohol and a soft brush, then dry again. If problems persist, the keyboard may need professional repair or replacement.
Frequently Asked Questions
Can I use a keyboard immediately after a spill if it still works?
No. Even if it seems to work, liquid inside can cause a short later. Always dry it completely first.
How long should I wait before plugging it back in?
At least 24 hours, preferably 48, especially for mechanical keyboards with many small parts.
Is it safe to use a hair dryer?
Only on the cool setting, held at least 6 inches away. Hot air can damage the keyboard.
What if the spill was sticky, like soda?
Clean the affected area with isopropyl alcohol on a cotton swab after blotting, then dry thoroughly. Sticky residue can cause keys to stick.
Can I fix a laptop keyboard the same way?
Laptops are much harder to dry and disassemble. Tilt the laptop, power it off, and seek professional help if liquid entered the chassis.
When should I give up and replace the keyboard?
If multiple keys fail after cleaning and drying, or if the keyboard is not detected, replacement is usually more cost-effective than repair, especially for membrane models.