Most keyboard problems come down to debris, loose connections, or a single broken switch—and most of those you can fix yourself in under an hour
A keyboard that sticks, types the wrong letter, or stops working altogether doesn't always mean buying a new one. The most common problems—keys that don't register, switches that stick, dust buildup, and loose cables—are straightforward to diagnose and repair at home. You'll need a few basic tools: a keycap puller (or a flathead screwdriver), isopropyl alcohol, compressed air, and possibly a soldering iron if you're replacing a mechanical switch. The repair depends on what's actually broken, so start by identifying whether the problem is a single key, the whole keyboard, or something in between.
Key Takeaways
- Stuck or unresponsive keys usually come from dust under the keycap or a dirty switch contact, both fixable with compressed air and alcohol.
- A keyboard that types nothing at all is often a loose USB cable, a dead battery (on wireless models), or a disconnected internal ribbon cable.
- Mechanical keyboards let you swap individual switches without soldering; membrane keyboards require cleaning the rubber dome or replacing the entire switch assembly.
- Spilled liquid requires when ready power-off and drying, but the keyboard is often salvageable if you act within the first hour.
- If a single key is physically broken or the circuit board is cracked, replacement is usually cheaper and faster than repair.
How to clean a sticky or unresponsive key
Start by removing the keycap. On most keyboards, you can pry it straight up with a keycap puller or the flat edge of a screwdriver—work from the sides rather than the center to avoid cracking the stem. Once the cap is off, look inside the switch. You'll see either a rubber dome (on membrane keyboards) or a mechanical switch with a spring and stem (on mechanical keyboards).
Use compressed air to blow out dust and debris from around the switch. Hold the can upright and use short bursts—don't shake it or tilt it, or you'll spray liquid. If the key still doesn't respond, dampen a cotton swab with isopropyl alcohol (90% or higher) and clean the metal contacts inside the switch. On mechanical switches, work the swab around the stem and the contact points. On membrane keyboards, clean the rubber dome and the metal contact pad underneath. Let everything dry for a minute, then reinstall the keycap and test.
If the key still sticks or doesn't register, the switch itself may be worn out. On a mechanical keyboard, you can order a replacement switch for $0.50 to $3 and swap it in—no soldering required on most modern boards. On a membrane keyboard, you'll need to replace the entire switch assembly, which usually means replacing the keyboard.
Fixing a keyboard that doesn't respond at all
If nothing types when you press any key, start with the connection. On a wired keyboard, unplug the USB cable from your PC and plug it back in firmly. Check that the cable isn't kinked or damaged. On a wireless keyboard, replace the batteries first—a dead battery is the most common cause of total failure. If the keyboard has a power switch on the back, make sure it's on.
Next, check your PC's device manager. On Windows, right-click the Start button, select Device Manager, and look under "Keyboards." If you see a yellow warning triangle or the keyboard is listed as "Unknown device," the driver may be corrupted. Right-click the keyboard entry and select "Uninstall device," then unplug and replug the keyboard. Windows will reinstall the driver automatically. On a Mac, go to System Settings > Bluetooth and forget the keyboard, then pair it again.
If the keyboard still doesn't work, open it up. Most keyboards have screws on the underside or hidden under rubber feet. Once open, look for a ribbon cable connecting the circuit board to the keycap assembly. If it's loose or partially disconnected, reseat it by gently pulling it out and pushing it back in until you hear or feel a click. Check for visible burn marks, corrosion, or a cracked circuit board—if you see any, the keyboard is not worth repairing.
What to do if you spilled liquid on the keyboard
Power off your PC when ready and unplug the keyboard. Do not try to use it while wet. Turn the keyboard upside down and let gravity drain the liquid for at least 30 seconds. If it was a small spill of water or weak liquid (coffee, juice), use compressed air to blow out as much moisture as possible from the gaps between keys and around the circuit board.
Place the keyboard in a warm, dry location—a sunny windowsill or near (not on) a heating vent works well. Leave it for at least 24 hours, ideally 48. Do not use a hair dryer or oven, which can damage plastic components. After it's completely dry, plug it back in and test each key. If some keys still don't work, follow the sticky key cleaning steps above—the liquid may have left residue on the contacts.
If the spill was sugary (soda, energy drink) or salty (seawater), the keyboard is harder to save. Disassemble it fully, remove the circuit board, and soak the keycap assembly in distilled water for 10 minutes to rinse away the residue. Dry everything thoroughly before reassembling. If the circuit board itself got wet with sugary liquid, corrosion will likely develop over time, and replacement is the safer choice.
Replacing a mechanical switch
Mechanical keyboards use individual switches that you can swap without soldering on most modern boards. First, remove the keycap by pulling straight up. Then use a switch puller (a small plastic tool that comes with many mechanical keyboards, or costs $3 to $5 online) to grip the switch on opposite sides and pull it straight out of the socket. The switch will pop free.
Insert the new switch into the empty socket, aligning the two plastic pins on the bottom of the switch with the two slots in the socket. Push down firmly until you hear a click—the switch should sit flush with the keyboard frame. Reinstall the keycap and test. Replacement switches cost between $0.50 and $3 each depending on the type (linear, tactile, clicky) and brand. If you don't know what type your keyboard uses, check the manual or the keyboard manufacturer's website.
On older mechanical keyboards or custom builds, switches may be soldered to the board. Desoldering requires a soldering iron, solder sucker, and some skill—if you've never soldered before, this is the point to stop and consider a new keyboard instead.
Repairing a broken keycap or stem
If a keycap is cracked or the plastic stem inside the switch is broken, you have two options: replace just the keycap, or replace the entire switch. A replacement keycap costs $1 to $8 depending on the keyboard type and whether you want to match the original color and texture. Keycaps are universal within a switch type—Cherry MX compatible keycaps work on any Cherry MX switch, for example.
Order a keycap that matches your switch type (check the keyboard manual or manufacturer's site). Remove the broken keycap, snap the new one onto the stem, and you're done. If the stem itself is broken—the plastic post inside the switch that the keycap clips onto—you'll need to replace the switch. This is the same process as the mechanical switch replacement above.
When to replace the keyboard instead of repairing it
Some damage isn't worth fixing. If the circuit board is cracked, burned, or heavily corroded, repair is not safe and won't last. If more than three keys are broken or unresponsive and they're on a membrane keyboard, replacement is cheaper than fixing each one individually. If the entire keyboard got wet with salt water or sugary liquid and you don't want to fully disassemble and soak it, replacement is faster.
A basic wired keyboard costs $15 to $40 new. A mechanical keyboard runs $50 to $150 depending on size and switch type. If your repair would take more than an hour and cost more than $20 in parts, a new keyboard is the practical choice. Keep the old one for parts—individual switches and keycaps have resale value to keyboard enthusiasts.
Frequently Asked Questions
Can I use regular water to clean my keyboard instead of isopropyl alcohol?
No. Regular water leaves mineral deposits that can cause corrosion and short circuits. Isopropyl alcohol (90% or higher) evaporates quickly and doesn't conduct electricity. If you don't have isopropyl alcohol, let the keyboard dry completely for 48 hours before using it again, and avoid cleaning the contacts.
My keyboard works but types the wrong letters. What's wrong?
This usually means the keyboard layout in your operating system doesn't match the physical keyboard. On Windows, go to Settings > Time & Language > Language & Region and check that the keyboard layout matches your keyboard type (QWERTY, AZERTY, etc.). On a Mac, go to System Settings > Keyboard and verify the input source. If the layout is correct, the keyboard may have a hardware fault and needs replacement.
How do I know if my keyboard switch is mechanical or membrane?
Remove a keycap and look at what's underneath. A mechanical switch has a visible metal spring and a plastic stem with a cross or stem shape. A membrane keyboard has a rubber dome (looks like an upside-down cup) sitting on a metal contact pad. Mechanical switches are louder and feel more tactile; membrane switches are quieter and softer.
Is it safe to use a keyboard that got wet if it seems to work fine?
Not always. Water inside the keyboard can cause corrosion that develops over days or weeks, leading to intermittent failures or short circuits. If a keyboard got wet, let it dry for at least 48 hours before using it regularly. If it was salt water or sugary liquid, disassemble and rinse it first, or replace it.
Can I repair a wireless keyboard the same way as a wired one?
Yes, the repair steps are identical—cleaning, switch replacement, and keycap replacement all work the same way. The only difference is the battery compartment on the back. Always remove the batteries before opening a wireless keyboard to avoid accidental short circuits.