3D Printing Custom Keyboard Keycaps: MX Stem Design, Legend Printing, and Shore Hardness for Switches
Custom mechanical keyboard builders eventually hit the same wall: the keycap sets you actually want — a specific colorway, a legend in a language your keyboard vendor doesn't sell, a profile that matches a desk theme, or just a single replacement for a cap you lost behind the couch — either don't exist commercially or cost more per keycap than the switch underneath it. Printing your own keycaps is one of the more deceptively fiddly things you can do on an FDM or resin printer: the part is small, the tolerances that matter are measured in tenths of a millimeter, and the thing that makes a keycap feel right (or wrong) under your finger is almost entirely in details that don't show up on a model preview. This guide covers the stem interface that actually determines whether your cap works at all, legend options, and the material and Shore hardness choices that affect feel.
The MX Stem: Where Printed Keycaps Actually Fail
Cherry MX and MX-compatible switches (Gateron, Kailh, Outemu, and the rest) use a cross-shaped stem: a 4.1mm x-axis arm and a 1.3mm y-axis arm projecting from the switch housing. Your keycap's underside needs a matching cross-shaped socket that is close to this size but with enough clearance to seat and release cleanly without being so loose that the cap wobbles. This is the single highest-failure-rate dimension in this whole project, and it's worth treating as a calibration step rather than trusting a downloaded model's numbers blindly:
- Design (or source) the stem socket at roughly 4.3-4.5mm x 1.4-1.6mm as a starting point — slightly oversized, since FDM shrinkage and nozzle width tend to undersize small negative features, and resin printers tend to slightly oversize negative features depending on exposure settings.
- Print a small test plate with 4-5 stem sockets at incrementally different clearances (for example, 4.3/4.4/4.5/4.6mm on the x-arm) and physically test-fit each one on a spare switch before committing to a full keyset.
- A socket that's too tight will crack the cap wall on insertion or require force that eventually deforms the switch stem. A socket that's too loose will produce a cap with noticeable side-to-side wobble and inconsistent keystrokes — this is the more common failure mode and the harder one to notice until you're actually typing on it.
If you're working from a parametric keycap generator (several open-source ones exist for OpenSCAD and Fusion 360), check what clearance value the model assumes before you print a full set, and adjust it based on your own calibration print rather than the model's defaults — clearance that works on one printer's calibration can be measurably off on another due to different levels of elephant's foot or horizontal expansion.
Keycap Profile and Row Geometry
If you're replacing one cap in an existing set, match the profile (Cherry, OEM, SA, DSA, XDA) and the specific row sculpt — most profiles use a different top-surface angle and height for each row (R1 through R4), so a single universal keycap STL printed five times for five rows will look and feel wrong even if every stem fits perfectly. If you're designing a full custom set, DSA and XDA profiles (uniform height and angle across all rows) are dramatically easier to get consistent results from than a sculpted profile like Cherry, and are the more forgiving starting point for a first project.
Legends: Pad Printing vs. Multi-Material vs. Engraved-and-Filled
Getting a legible, durable legend onto a printed keycap is its own problem, separate from the stem fit:
| Method | How It Works | Durability | Difficulty |
|---|---|---|---|
| Multi-color / multi-material print | Print the cap body and legend in separate colors using an AMS, color-changer, or dual-extrusion setup; legend is a thin raised or recessed layer of contrasting filament | Good — legend is part of the plastic, not a surface coating | Moderate; needs careful color-change Z-height planning |
| Engrave and hand-fill | Print the cap solid, engrave the legend with a rotary tool or laser, then fill with paint or UV resin and scrape/sand flush | Excellent if filled well | Moderate; time-consuming per cap |
| Surface decal / UV print | Apply a printed decal or direct UV-cured ink to the finished cap surface | Poor to fair — wears off with thumb contact on frequently-used keys within months | Low |
| Blank, no legend | Skip it — common for home row and modifier keys once you've memorized a layout | N/A | None |
For keys you touch-type confidently (letters, especially), blank or minimally-legended caps in a DSA/XDA profile are a popular and low-effort choice. For anything you glance down at — function row, numpad, media keys — the multi-material or engrave-and-fill approaches hold up far better than a surface decal under the specific abrasion pattern a fingertip produces over tens of thousands of keystrokes.
Material and Shore Hardness
Keycap feel is largely a function of wall thickness and material stiffness working together, not either one alone:
- PLA: easiest to print and dimensionally the most predictable, which makes it the right choice for your stem-fit calibration prints. As a final material it's serviceable but will develop a slightly chalky, worn feel faster than ABS or PETG under heavy use, and is more prone to cracking at the stem socket if the fit was too tight.
- PETG: a solid middle ground — tougher at the stem socket than PLA, holds up well to years of daily typing, and takes light sanding or vapor treatments less dramatically than ABS (which can be a plus or minus depending on the finish you want).
- ABS: closest to what most commercial keycaps are actually made from, with a slightly deeper, warmer sound profile that keyboard enthusiasts often describe as more "thocky" than PETG's higher-pitched click. Needs an enclosed, ventilated printer and is more prone to warping on a cold bed.
- Resin (standard or tough, not flexible): gives the cleanest surface finish and sharpest legend detail if you're engraving, at the cost of being more brittle under the specific repeated-impact loading a keycap sees — a dropped resin-printed cap is more likely to chip at a corner than an FDM one.
- Avoid soft/flexible TPU for the cap body — a keycap needs to transmit a crisp tactile or clicky signal to your finger; a compliant cap muddies that feedback and most builders who try it switch back within a week.
Print Orientation and Surface Quality
Print keycaps top-surface-down on the build plate whenever your slicer and supports allow it — the top surface is what your finger reads every keystroke, and it's the surface most sensitive to layer lines and seam placement. Printing stem-down is more common for support-free printing but puts the visible seam and any Z-seam ghosting right on the surface you touch most. A light post-print sand (400-600 grit) and a thin clear coat on the top surface takes most of the remaining layer texture out without softening the legend if you've engraved and filled it rather than painted on top.
A full custom keyset is a multi-evening project even once your stem fit is dialed in — budget real time for the calibration step rather than skipping straight to printing 104 caps, because a stem clearance that's off by even a few tenths of a millimeter will show up as a cracked cap or an annoying wobble on every single key in the set, and by then you've already spent the filament.