What a mechanical keyboard actually is
Before you choose a kit or touch a soldering iron, it pays to understand the object you are about to build. Not at the level of marketing copy ("premium typing experience") but at the level of parts: what is physically inside a keyboard, what each piece does, and how a press of your finger becomes a letter on the screen. Once that picture is in place, every later chapter is just details hanging off it. No background is assumed, and every term gets defined the first time it appears.
Membrane versus mechanical: what actually differs
Almost every cheap keyboard you have ever typed on, including the one built into your laptop, is a membrane keyboard. Under all the keys sits a single flexible plastic sheet (the membrane) printed with conductive traces. Pressing a key squishes a small rubber dome, which pushes two layers of that sheet together at one spot, closing a circuit. One sheet, dozens of keys, a few cents of rubber. It is a marvel of cost engineering.
A mechanical keyboard replaces that shared sheet with an individual, self-contained switch under every single key: a small plastic mechanism with its own spring and its own metal contacts. Fifty-eight keys means fifty-eight separate switches, each one a discrete part you could hold in your hand.
What does that actually buy you? Honestly, three things.
- Consistency and feel. Every switch is the same mechanism, so every key feels the same, and you can choose exactly what that feel is: how much force, whether there is a bump, whether there is a click. Rubber domes feel mushy by comparison and vary key to key as they age.
- Durability and repair. A switch is rated for tens of millions of presses, and if one dies you replace that one switch. When a membrane wears out or gets a coffee bath, the whole keyboard is done.
- Choice. Because switches, keycaps, and boards are separate parts with standard shapes, you can mix and match. That modularity is the entire reason a book like this can exist.
And here is the honest part: membrane keyboards are fine. Billions of people type on them all day without complaint, and if a keyboard is just "the thing between me and the email," a membrane board is a perfectly rational choice. This book exists because you want more than that: a keyboard shaped to your hands, keys that feel exactly how you like, and the experience of having built it yourself. Those are real benefits, but they are benefits of craft and comfort, not necessity.
Don't be confused. "Mechanical" and "gaming" are not the same word. Marketing has glued them together (RGB lights, aggressive fonts, names like VENOM STRIKE), but a mechanical keyboard is defined only by having individual switches. Plenty of mechanical boards are quiet, plain, and office-friendly, and the one you will build has no gamer styling at all unless you add it.
The anatomy, from your fingertip down
Take one key on a mechanical keyboard and slice straight down through it. You pass through these layers, in order:
your finger
|
[ KEYCAP ] the plastic hat with the letter on it
[ SWITCH ] spring + stem + contacts: the mechanism
[ PLATE ] a stiff sheet the switch clips into
[ PCB ] the circuit board that senses the press
[ CASE ] whatever holds it all off the desk
Let us take each one slowly.
The keycap is the removable plastic cap you actually touch. It does nothing electrical. It pulls straight off (there is even a cheap tool for it, the keycap puller, which lands on your shopping list in Chapter 5). Underneath, it grips the switch by a cross-shaped post. Keycaps come in different profiles (sculpted heights and angles), which matters later when we shop in Chapter 4.
The switch is the heart of the whole thing. Inside its plastic housing you find four parts:
- The stem: the colored plastic plunger that moves up and down. Its cross-shaped top is what the keycap grips. The cross shape is called an MX stem, after the Cherry MX switch that standardized it decades ago, and nearly every keycap on Earth fits it.
- The spring: a small coil that pushes the stem back up after you press. Stiffer spring, heavier key.
- The leaf: a pair of thin springy metal contacts. When the stem slides down, it lets the two leaves touch, closing the circuit. That touch is the electrical event that means "key pressed."
- The housing: the plastic shell (a top and a bottom) that holds it all together, with metal pins sticking out of the bottom to connect the leaf to the circuit board.
Switches come in three families, and the family is the single biggest "what does it feel like" decision you will make:
| Family | Feel | Sound | Named examples |
|---|---|---|---|
| Linear | Smooth travel, no bump, force builds evenly | Quiet | Gateron Red, Cherry MX Red |
| Tactile | A gentle bump partway down, right where the press registers | Quiet-ish | Gateron Brown, Cherry MX Brown |
| Clicky | A bump plus a deliberate, audible click | Loud | Cherry MX Blue, Kailh Box White |
There is no correct answer, only preference. Linears suit people who bottom out every key anyway; tactiles give feedback without noise; clickies are joyful and will get you evicted from any shared office. There is also a second size standard worth knowing now: Kailh Choc switches are low-profile, roughly half the height of MX switches, with a different stem and different pins. They make wonderfully thin keyboards but lock you into a much smaller keycap selection. The Lily58 we build uses full-size MX switches; the Choc option comes up again when we compare kits in Chapter 2.
Don't be confused. The switch and the keycap are separate purchases and separate parts. The switch is the mechanism that does the electrical work; the keycap is the printed plastic hat on top. "I want clicky blue keys" is a switch decision. "I want retro beige keys" is a keycap decision. You can have both at once, or swap either later without touching the other.
The plate is a stiff sheet, usually fiberglass (called FR4), aluminum, or acrylic, with a grid of square holes. Each switch clips into a hole, which holds it perfectly straight and takes the wobble out of typing. Some cheap builds skip the plate and mount switches directly to the circuit board; the Lily58 kit includes one.
The PCB, or printed circuit board, is the flat green (or black, or purple) board that everything electrical lives on. "Printed" refers to the copper traces, thin flat wires printed onto the board, that connect every switch position back to the brain. The PCB is where you will do all your soldering, and Chapter 3 tours the Lily58's PCB in detail.
Here a fork in the road appears, and it shapes your whole build: how does the switch attach to the PCB?
- Soldered: the switch's two metal pins go through holes in the PCB and you solder them in place. Solid, cheap, permanent. Changing switches later means desoldering, which is real work.
- Hotswap: the PCB carries small metal hotswap sockets, one pair per key, and the switch pins simply push into them, no solder needed for the switch. You can pull any switch out with a tool and push a new one in, forever. The catch for a kit builder: on a Lily58 the sockets themselves arrive loose in a bag, and soldering them onto the board is your job. So you still solder, you just solder sockets once instead of committing to switches forever.
The controller is the keyboard's brain: a microcontroller, which is a complete tiny computer (processor, memory, USB hardware) on a single chip, sitting on a small board about the size of a stick of gum. Ours plugs into the PCB. A microcontroller is the same kind of chip that runs your microwave's keypad or a car's window switches: not powerful, not general-purpose, but perfectly suited to one dedicated job. Its job here is to watch the switches and talk to your computer over USB.
The firmware is the program running on that microcontroller. Hardware without a program does nothing; firmware is the "what to do" (which physical switch means the letter Q, what the screen shows, what happens when you hold a thumb key). It is called firmware rather than software because it lives permanently on the chip rather than on a disk. You will install ("flash") and customize yours in Chapter 12, and no, you will not have to write it from scratch.
From press to letter: the key matrix
Now the elegant part: how does the controller know which key you pressed?
The naive design would run one wire from every switch to the controller. With 58 keys that means 58 wires into a chip that has about 18 usable pins. It does not fit, and on a full-size 104-key board it does not fit spectacularly. So every keyboard ever made uses a trick called the key matrix.
Picture the keys arranged in a grid of rows and columns, like a spreadsheet. Wire all the switches in each row together on one shared wire, and all the switches in each column together on another shared wire. Each switch sits at one intersection: pressing it connects its row wire to its column wire. A 5-row by 6-column grid covers 30 keys using only 11 wires. That is the entire trick: 58 keys collapse into a dozen or so pins.
The controller reads this grid by scanning: it puts a signal on row 1 and checks which columns received it (any that did have a pressed key in row 1), then row 2, then row 3, cycling through the whole grid hundreds of times per second. To your reflexes this is instantaneous; to the chip it is a leisurely stroll.
One problem remains, and it is the reason your kit contains a little bag of 58 identical electronic components. Suppose you press three keys at once that form three corners of a rectangle in the grid. Electricity is lazy and flows through any closed path, so current can sneak backwards through one pressed switch, along a wire, and out through another, making a fourth intersection look pressed when it is not. The keyboard reports a key you never touched. This false key is called a ghost, and the phenomenon is ghosting. The mirror-image failure, where the keyboard protects itself by simply ignoring key combinations it cannot disambiguate, is called blocking. Cheap membrane boards do a lot of blocking, which is why mashing three keys in an old game sometimes dropped one.
The fix is a diode at every key. A diode is the simplest useful electronic component: a one-way valve for electricity. Current flows through it in one direction and is blocked in the other. Put one in series with each switch and current can never sneak backwards through a pressed key, so ghosts become impossible and the keyboard can correctly report any combination of keys held at once. That ability has a name you will see on spec sheets: N-key rollover, or NKRO, meaning "all N keys can roll over each other and every one still registers." Soldering those 58 diodes, each smaller than a grain of rice, is the first real task of the build, and the direction they face matters absolutely, which is why Chapter 3 teaches you to read their markings.
The last hop is the easiest to describe. The controller speaks to your computer using USB HID, the Human Interface Device protocol, the same standard language spoken by every mouse and keyboard made this century. When the scan finds a newly pressed switch, the firmware looks up what that grid position means (the letter J, say, or "switch to layer 2") and sends a standard HID report over the USB cable. Your operating system already knows the protocol, which is why a keyboard you built at your kitchen table needs no driver, no app, and no setup: plug it into any computer made in the last twenty years and it types.
Why split, and why the keys line up in columns
Look at your hands on a normal keyboard. Two things are quietly wrong.
First, your hands are forced together. Your shoulders are perhaps 45 centimetres apart, but the letter block of a keyboard is about 15 centimetres wide, so both wrists bend outward, pinky-ward, all day to aim your hands inward. That outward wrist bend has a medical name, ulnar deviation, and it is a documented contributor to wrist strain in people who type a lot. A split keyboard simply cuts the board in two so each half sits in front of its own shoulder, letting your forearms run straight. You can also tent the halves or angle them independently. This is the single biggest ergonomic lever a keyboard has.
Second, look at how the rows are offset. Q sits up and to the left of A, which sits up and to the left of Z. That diagonal row stagger is not ergonomics; it is archaeology. Mechanical typewriters needed each key's lever to reach the platen without colliding with its neighbours, so the rows were offset to make room for the linkages. The levers disappeared 150 years ago; the stagger never did. Your fingers, meanwhile, hinge straight forward and back. Columnar stagger (also called column stagger) arranges each finger's keys in a straight vertical column and then shifts whole columns up or down to match finger length: the middle-finger column sits higher because that finger is longer, the pinky column lower. The Lily58 is both split and column-staggered.
Now the honest note, because this book owes you one. The ergonomic reasoning is sound and the comfort gains are real for many people who type heavily. But there is an adaptation cost, and it is not small: your first one to two weeks on a split columnar board, your typing speed drops noticeably while your fingers unlearn forty years of typewriter compromise. It comes back, usually stronger, but the dip is universal and it is frustrating. And if you type two hours a day without any wrist complaints, the honest statement is that you may never notice a difference beyond "this is comfortable and I made it." Build the keyboard because you want to build it; treat the ergonomics as a strong bonus, not a medical promise. Chapter 14 is entirely about surviving and enjoying the transition.
Sizes, 58 keys, and the magic of layers
Keyboards are sold by size, usually expressed as a percentage of the full 104-key layout:
| Size | Keys (about) | What is gone |
|---|---|---|
| Full-size | 104 | Nothing: letters, F-row, arrows, number pad |
| TKL ("tenkeyless") | 87 | The number pad |
| 60% | 61 | Number pad, F-row, arrows, navigation block |
| 40% | 40 to 48 | All of the above plus the number row |
The Lily58's 58 keys put it in comfortable territory: it keeps the full number row (a genuine kindness to beginners) and gives each thumb a small cluster of keys, sacrificing only the F-row, the arrows, and the navigation keys as dedicated buttons.
So where did those keys go? Into layers, and this idea is the key to every small keyboard. You already use a layer daily: hold Shift and the whole keyboard changes meaning, 3 becomes #, a becomes A. A programmable keyboard generalizes that. Hold a designated layer key (usually under a thumb) and the board remaps: I, J, K, L become arrow keys, the number row becomes the F-row, whatever you choose. Release, and it is a letter board again. Your fingers never leave the home row to reach arrows, which, once learned, feels like a cheat code. You will define your own layers in Chapter 12.
Takeaways
- A mechanical keyboard has an individual switch under every key instead of one shared rubber membrane; membrane boards are fine, mechanical buys feel, repairability, and choice.
- The stack under your finger is keycap, switch, plate, PCB, case, with a microcontroller running firmware as the brain.
- Switches are linear (smooth), tactile (bump), or clicky (bump plus noise); MX is the standard size, Kailh Choc the low-profile alternative.
- Keys are wired in a matrix of rows and columns that the controller scans; a diode per key prevents ghosting and enables full N-key rollover; the result is sent to the computer as ordinary USB HID, no drivers needed.
- Split halves fix ulnar deviation, columnar stagger fixes a typewriter leftover; the comfort is real but so is a one to two week adaptation dip.
- 58 keys keeps the number row; everything missing lives on layers, reached with a thumb key.
👉 Now that you know what lives inside the case, Chapter 2 puts the Lily58 next to its rivals so you can choose your first build with open eyes.