Start with the simplest fixes before taking the keyboard apart

Most keyboard problems can be solved without opening the device. Before you disassemble anything, try these steps in order: unplug the keyboard (or disconnect it if wireless), wait 30 seconds, then plug it back in. Restart your computer. If keys still stick or don't respond, blow compressed air between the keys for 10 to 15 seconds, holding the keyboard upside down so debris falls out. For wireless keyboards, replace the batteries and re-pair the device to your computer by holding the connection button for three seconds.

If the keyboard still does not work after these steps, check your computer's settings. On Windows, go to Settings > Devices > Keyboard and look for any disabled options. On Mac, go to System Preferences > Keyboard and check that the keyboard is recognized. A keyboard that appears to be broken is often just disconnected in software.

Key Takeaways

  • Restart the keyboard and computer first—most problems solve themselves without opening the device.
  • Sticky keys usually come from debris under the keycap and can be cleaned by removing the cap and wiping the stem with a damp cloth.
  • Unresponsive keys often need the switch replaced, which requires desoldering on older keyboards but is a straightforward swap on mechanical keyboards with hot-swap sockets.
  • Liquid damage requires when ready power-off and drying for 24 to 48 hours before attempting any repairs.
  • Mechanical keyboards are far easier to repair than membrane keyboards because individual switches can be replaced without soldering.

How to clean a sticky key without removing the switch

Sticky keys are usually caused by dust, food crumbs, or dried liquid under the keycap. Start by removing the keycap itself. Most keycaps pull straight up—use a keycap puller (a small plastic tool that costs $3 to $5) or a flathead screwdriver placed under two opposite corners of the cap. Pull gently and evenly; forcing it can crack the cap or break the stem underneath.

Once the cap is off, look at the stem—the plastic post sticking up from the switch. If you see visible debris, use a dry cotton swab to wipe it away. If the stem feels sticky, dampen the swab slightly with distilled water (not tap water, which leaves mineral deposits) and wipe the stem and the inside of the keycap. Let both dry for five minutes, then press the cap back down until it clicks. Test the key by pressing it 20 times; it should move smoothly without catching.

If the key is still sticky after cleaning, the problem is inside the switch itself. On a mechanical keyboard with hot-swap sockets, you can replace the entire switch (see the section below). On a membrane or soldered keyboard, the switch cannot be easily replaced without specialized tools.

Replacing a switch on a mechanical keyboard

Mechanical keyboards with hot-swap sockets allow you to remove and replace individual switches without soldering. First, power off the keyboard and unplug it. Look at the switch you want to replace—if it has a small rectangular opening around its base, it uses hot-swap sockets.

Use a switch puller (a small tool that comes with most mechanical keyboards, or costs $2 to $8 separately) to remove the broken switch. Place the puller's two prongs around the switch stem, then pull straight up with steady pressure. The switch should slide out cleanly. If you do not have a puller, you can carefully use two flathead screwdrivers placed on opposite sides, but this risks damaging the socket.

Once the switch is out, inspect the socket for bent pins or debris. If the socket looks clean, insert the new switch by aligning its stem with the socket opening and pressing down until it clicks. Test the key by pressing it 10 times. If the key does not register, remove the switch and check that the pins are straight and the socket is not damaged.

Replacement switches cost $0.50 to $3 each depending on the type. Buy the same brand and model as your keyboard's original switches—Cherry MX, Gateron, and Kailh are common brands. Check your keyboard's documentation or the manufacturer's website to confirm which type you need.

Fixing an unresponsive key on a soldered keyboard

If your keyboard has switches soldered directly to the circuit board, replacing a single switch requires desoldering equipment: a soldering iron, solder wick or a desoldering pump, and replacement switches. This is a skilled task that takes 20 to 30 minutes per switch and risks damaging the circuit board if done incorrectly.

Before attempting this repair, confirm the key is actually broken. Unplug the keyboard, wait 30 seconds, and plug it back in. Test the key again. If it still does not work, try cleaning under the keycap as described above. If cleaning does not help, the switch itself has failed.

To replace a soldered switch, you will need a soldering iron (a basic model costs $15 to $30), solder wick or a desoldering pump ($5 to $20), and a replacement switch. Heat the solder joints on the underside of the circuit board where the switch pins connect, then remove the old solder using the wick or pump. Once the joints are clear, remove the old switch, insert the new one, and solder the pins back in place. If you have never soldered before, this repair is worth learning on a cheap keyboard first—mistakes can permanently damage an expensive one.

What to do if liquid spilled on the keyboard

If water, coffee, or another liquid spills on your keyboard, power it off when ready and unplug it. Do not try to use the keyboard while it is wet—this can short the circuit board and cause permanent damage. Remove any visible liquid by tilting the keyboard and letting it drain for one minute.

Place the keyboard in a warm, dry location for 24 to 48 hours. A sunny windowsill or a room with low humidity works well. Do not use a hair dryer or oven—direct heat can warp the plastic. After 24 hours, plug the keyboard back in and test a few keys. If keys work, let it dry for another 24 hours before using it normally. If keys do not work, the circuit board may have corrosion that requires professional repair or replacement.

For sticky liquids like soda or juice, you may need to rinse the keyboard. After unplugging it, remove the keycaps and hold the keyboard under cool running water for 10 seconds, tilting it to let water flow through. Shake out excess water, then let it dry for 48 hours before plugging it back in. This is a last resort because water can damage components, but sticky residue will prevent keys from working anyway.

Checking the circuit board and cable connection

If multiple keys do not work or the entire keyboard is unresponsive, the problem may be the circuit board or the cable connecting it to the computer. Unplug the keyboard and inspect the cable where it enters the keyboard body. Look for kinks, cuts, or crushed sections. If the cable is visibly damaged, the keyboard will need to be replaced—cables are not sold separately for most keyboards.

On some keyboards, the cable can be disconnected from the circuit board inside the device. If you are comfortable opening the keyboard, unscrew the bottom panel (usually four to six screws) and look for a ribbon cable or USB connector inside. Disconnect it and reconnect it firmly—a loose connection can cause keys to stop working. Screw the panel back on and test the keyboard.

If the cable looks fine and reconnecting it does not help, the circuit board itself may be damaged. This is not a repair most people can do at home without specialized equipment. At this point, replacing the keyboard is usually the most practical option.

When to replace instead of repair

Some keyboard problems are not worth fixing. If your keyboard is more than five years old, costs less than $30 to replace, and has multiple broken keys, buying a new one is faster and cheaper than repairing it. Membrane keyboards (the thin, quiet type found on most laptops and budget desktop keyboards) are especially difficult to repair because switches are not replaceable without soldering.

Mechanical keyboards are worth repairing because switches are inexpensive and straightforward to replace. If your mechanical keyboard has one or two broken keys, replacing the switches costs $1 to $6 and takes 10 minutes. If it has more than three broken keys, consider whether the keyboard is worth keeping or whether a replacement makes more sense.

Liquid damage to a keyboard is almost never worth repairing unless the keyboard cost more than $100. The corrosion inside the circuit board spreads over time, and keys will continue to fail even after the initial damage dries. A new keyboard is safer and more reliable.

Frequently Asked Questions

Can I use my keyboard while it is wet?

No. Using a wet keyboard can short the circuit board and cause permanent damage. Unplug it when ready and let it dry for 24 to 48 hours before testing it again. If you must use a keyboard right away, use a different one while the wet keyboard dries.

What is the difference between a mechanical and membrane keyboard?

A mechanical keyboard has individual switches under each key that can be replaced separately. A membrane keyboard has a rubber dome under the keys that cannot be replaced without soldering. Mechanical keyboards are easier and cheaper to repair because you can swap out individual switches in seconds.

Do I need a soldering iron to fix my keyboard?

Only if your keyboard has soldered switches. Most modern mechanical keyboards use hot-swap sockets, which let you remove and replace switches by hand. Check your keyboard's manual or the manufacturer's website to find out which type you have.

Why do my keys stick even after I clean them?

Sticky keys usually come from debris under the keycap, which cleaning solves. If a key is still sticky after you wipe the stem and keycap, the problem is inside the switch itself. On a mechanical keyboard, replace the switch. On a membrane keyboard, the switch cannot be easily replaced.

How much does it cost to replace a keyboard?

A basic membrane keyboard costs $10 to $30. A mechanical keyboard costs $50 to $150 or more depending on the brand and features. Replacement switches for mechanical keyboards cost $0.50 to $3 each. If your keyboard is expensive and only a few keys are broken, repairing it is usually cheaper than replacing it.