How to Build a Keyboard: Full DIY Guide
In this article
Building your own keyboard gives you total control over the feel, sound, and layout, and it’s simpler than it sounds. You’ll solder a few components (or skip soldering with a hot-swap board), mount switches, and program the layout. This guide covers a standard 60–75% mechanical keyboard with a hot-swap PCB, which is the easiest route for beginners.
What You'll Need
- Keyboard kit (case, PCB, plate, stabilizers) – hot-swap recommended
- Mechanical switches (e.g., Cherry MX, Gateron) – enough for your layout
- Keycaps (compatible with your switch stem – MX style is standard)
- Screwdriver (usually Phillips #0 or #1)
- Tweezers or a switch puller (often included in kits)
- Optional: keycap puller, lubricant for stabilizers, small brush
- USB-C cable (most modern boards)
Step-by-Step
- Check your kit contents. Lay out all parts: case, PCB, plate, stabilizers, screws, and any foam. Verify the PCB is hot-swap (sockets for switches) – if it’s solder-only, you’ll need a soldering iron and solder.
- Install stabilizers. Stabilizers are used for larger keys (spacebar, Enter, shift). Insert the wire into the stabilizer housing, then clip the housing into the PCB. For screw-in stabilizers, screw them in from the underside of the PCB. Apply a tiny bit of grease to the wire ends to reduce rattle (optional but recommended).
- Place the plate over the PCB. The plate is the metal or plastic layer that holds switches. Align the plate’s cutouts with the PCB’s switch holes. Make sure the stabilizers align with the plate’s openings.
- Insert switches. Take a switch and align its two metal pins with the holes on the PCB socket. Push straight down until you hear a click. For hot-swap boards, you should not need force – if it resists, check pin alignment. Continue until all switches are seated. (If you’re soldering, insert all switches first, then solder each pin to the PCB pad.)
- Test the PCB before closing. Connect the USB cable to the PCB and plug into your computer. Open a text editor or keyboard tester website. Press each key to ensure it registers. If a key doesn’t work, reseat that switch.
- Assemble the case. Place the PCB+plate assembly into the bottom case. Ensure the USB port aligns with the case cutout. Screw the assembly down using the provided screws – don’t overtighten.
- Attach keycaps. Press each keycap onto its switch stem until it clicks. For larger keys, align the stabilizer inserts on the keycap with the stabilizer stems. Press firmly but evenly.
- Final test and customization. Plug the keyboard in again and test every key. If your PCB supports QMK or VIA (check the kit’s manual), you can remap keys, add layers, or change RGB lighting via the official software.
Common Mistakes
- Bent pins: Forcing a switch can bend its pins. If a switch doesn’t go in smoothly, pull it out and straighten the pins with tweezers.
- Stabilizer wires not seated: If the spacebar feels mushy or doesn’t return, the wire may be dislodged. Reinstall the stabilizer carefully.
- Wrong keycap orientation: Some keycaps (like spacebar) are angled – ensure the wider side faces down.
- Overtightening screws: This can strip threads or crack the PCB. Tighten until snug, then stop.
- Forgetting to test before assembly: If you close the case and a key doesn’t work, you’ll have to disassemble everything.
Tips
- Buy a switch puller – it makes removing switches much easier and safer.
- Lubricate stabilizers with a thin grease (like Krytox 205g0) – it eliminates rattle.
- If you’re new, choose a hot-swap PCB so you can swap switches later without soldering.
- Keep the screws in a small container to avoid losing them.
- Use a keycap puller to remove keycaps without damaging the stems.
- Check the PCB’s layout compatibility – some PCBs support multiple layouts (e.g., ANSI vs ISO) – confirm your keycaps match.
Troubleshooting
- Key not registering: Reseat the switch. If it still fails, try a different switch in that socket. If the new switch works, the old one is defective.
- Whole row not working: This often indicates a stabilizer or plate alignment issue – check that all switches in that row are fully seated and pins aren’t bent.
- Spacebar is uneven or rattly: Remove the spacebar and reinsert the stabilizer wire. Ensure the wire clips into the housing’s slots.
- USB not detected: Try a different cable and port. If it still fails, check the PCB’s USB connector for damage – if so, contact the seller.
- RGB not working: Many boards have a function key (e.g., Fn+Enter) to toggle lighting. Check your manual – if it still fails, the RGB might be disabled in software.
- Keycap stuck: Press down on the keycap and wiggle gently – do not pull hard, as you might pull the switch out.
Frequently Asked Questions
Do I need to solder to build a keyboard?
No, if you choose a hot-swap PCB, you simply push switches into the sockets. Soldering is only required for non-hot-swap PCBs.
What’s the difference between a 60%, 65%, and 75% keyboard?
60% has no function row or arrow keys; 65% adds arrow keys; 75% includes the function row and arrows – all are common for DIY builds.
Can I use any keycaps with any switches?
Most keycaps are compatible with MX-style switches (Cherry, Gateron, etc.). If you use other switch types (like Topre or Alps), you need matching keycaps.
How do I program my keyboard’s layout?
Many PCBs use QMK or VIA. Download the official VIA software, connect your keyboard, and remap keys via a graphical interface. Some boards use proprietary software – check your kit’s manual.
Why are my stabilizers so loud?
They likely lack lubrication. Apply a small amount of grease to the stabilizer wire ends and the housing contact points.
Can I build a keyboard without a plate?
Yes, some PCBs are “plateless” – switches are mounted directly to the PCB. This is less common and requires switches with good pin alignment, but it’s possible.