How to Replace Keyboard Switches and Keycaps Safely
In this article
Replacing switches or keycaps on a custom keyboard is safe if you power the board down, use the right tools, and match parts to the PCB. The short version: unplug the keyboard, remove keycaps with a wire puller, desolder or hot-swap switches depending on your PCB, then reseat everything and test before closing the case. This guide covers both keycap swaps and full switch replacement, with the checks that prevent bent pins, scratched plates, and dead keys.
What You'll Need
- Keycap puller (wire style is safer than plastic ring pullers)
- Switch puller if your PCB is hot-swap
- Soldering iron, solder, desoldering pump or wick, and flux if your PCB is soldered
- Isopropyl alcohol and a lint-free cloth for cleaning the plate
- Small screwdriver set for opening the case
- Replacement keycaps or switches that match your layout and PCB
- A clean, well-lit, non-carpeted work surface
Before you start, confirm whether your PCB is hot-swap or soldered. A hot-swap board has sockets with two metal contacts; a soldered board has pins fixed to the PCB. If you are not sure, check the product listing or look at the underside of the PCB. Labels and menu names in keyboard software can differ slightly by version and brand, but the hardware steps below are the same.
Step-by-Step
- Power down and disconnect. Unplug the USB cable and switch the board off if it has a power switch. If it is wireless, remove the battery or turn it off. Never pull keycaps or switches while the board is connected.
- Remove the case if needed. Some boards need the top case removed to access the plate or PCB. Keep screws in a small dish so they do not roll away.
- Pull the keycaps. Use a wire puller: hook it under opposite corners of the cap and pull straight up. Work slowly and evenly. Do not twist, because twisting can bend the switch stem or crack the cap.
- Clean the plate and stems. Wipe the plate with a lightly dampened cloth and isopropyl alcohol. Do not flood the PCB with liquid. Let everything dry fully before continuing.
- Check the switch type. On a hot-swap PCB, use a switch puller to grip the top and bottom of the switch and pull straight up. On a soldered PCB, flip the board over and desolder each pin: heat the joint, remove old solder with a pump or wick, and gently free the pin. Do not force a soldered switch out.
- Install the new switches. For hot-swap, line up the two pins with the socket holes and press straight down until the switch sits flush. For soldered, insert the switch, check that it sits flat, then solder each pin and trim any excess lead.
- Test before reassembly. Reconnect the keyboard and open a key tester or a text editor. Press every key and confirm each one registers. Fix any dead key before closing the case.
- Fit the keycaps. Press each cap straight down onto the stem until it seats. Check that stabilized keys such as spacebar, Enter, and Shift move freely and do not rub.
- Reassemble and final test. Refit the case, reconnect, and type for a minute. Confirm no keys stick and the board sits flat.
Common Mistakes
- Pulling keycaps with too much sideways force and bending the switch stem.
- Forcing a hot-swap switch in the wrong orientation and bending a pin.
- Desoldering without enough heat, which lifts pads off the PCB.
- Mixing switch types that do not fit the plate or PCB footprint.
- Skipping the test step and discovering a dead key after the case is closed.
- Using water or too much alcohol near the PCB.
Tips
- Work over a tray so small parts do not disappear.
- Take a photo before removing anything so you know where each cap and screw belongs.
- Keep keycaps in rows or a labeled bag if you are swapping only part of the set.
- Use a keycap puller designed for the cap profile; some low-profile caps need a different puller.
- If a switch feels tight, check the pin alignment before pushing harder.
Troubleshooting
A key does not register after a swap. Power down, remove the cap, and reseat the switch. On a hot-swap board, check that both pins are straight and fully in the socket. On a soldered board, check for a cold joint or a bridge.
A keycap will not sit flat. Remove it and check that the stem is not bent and that the cap is the right size for that row. Stabilized keys need the inserts seated correctly.
A switch is stuck in the plate. Do not lever it with metal. Remove the case and push from the back if the PCB allows, or use the switch puller straight up.
The board does not power on after reassembly. Check the USB cable, the power switch, and that no screw is shorting the PCB. If it still fails, disconnect and inspect for loose solder or debris.
Frequently Asked Questions
Can I replace keycaps without removing switches?
Yes. Keycaps pull straight off the switch stems and do not require desoldering.
Do I need to desolder to change switches?
Only on a soldered PCB. Hot-swap boards let you pull and press switches without solder.
Can I mix switch brands?
Only if the pin layout and plate fit match. Check the footprint before buying.
How do I avoid bending pins?
Line up the pins with the holes and press straight down. Never force a switch at an angle.
Is it safe to clean switches with alcohol?
Wipe the plate and cap exteriors only. Do not soak switches or the PCB.
What if a keycap cracks?
Replace it. A cracked stem will not hold and can damage the switch stem.