Mechanical keyboard

On this page 7

A mechanical keyboard is a keyboard in which every key has its own discrete switch, a self-contained assembly with a housing, a moving stem, a spring and a sensing mechanism. This distinguishes it from membrane and rubber-dome keyboards, where all keys press onto shared plastic sheets. Among computer peripherals, mechanical keyboards are valued for consistent key feel, precise actuation, long service life and repairability.

The term describes the switch architecture, not a specific sound or appearance. A mechanical keyboard can be silent or loud, light or heavy, wired or wireless, and modern variants even replace metal contacts with optical or magnetic sensing while keeping the individual-switch design.

How a mechanical key switch works

A classic mechanical switch registers a keystroke when the stem pushes two metal contacts together partway through its travel. In the widespread MX-style design, the stem travels 4.0 mm in total and actuates at about 2.0 mm, so the key registers before it bottoms out. The spring returns the stem and sets the force needed to press it, measured in centinewtons (cN) or the roughly equivalent gram-force.

Metal contacts bounce for a few milliseconds when they close, producing several electrical transitions. The keyboard firmware applies a debounce interval, commonly around 5 ms, and reports only one press. Switches that sense position optically or magnetically have no contact bounce and can use shorter or no debounce intervals.

Switches are grouped by how the keystroke feels. The table summarizes the main families.

Switch familyFeel and sensingTypical actuation forceTypical use
LinearSmooth travel, no bump, metal contacts35-60 cNGaming, fast repeated presses
TactileNoticeable bump at actuation45-67 cNTyping and general office work
ClickyBump plus an audible click50-60 cNTyping where noise is acceptable
OpticalStem interrupts a light beam40-60 cNGaming with no contact bounce
Hall effect (magnetic)Sensor measures magnet position30-60 cNAdjustable actuation and rapid trigger
Electrocapacitive (Topre-style)Rubber dome with capacitive sensing30-55 cNQuiet, cushioned typing
Main families of keyboard switches

Whether electrocapacitive switches count as mechanical is debated, because they use a rubber dome. They are usually grouped with mechanical keyboards because each key still has an individual spring and sensing element.

Mechanical, membrane and scissor keyboards compared

The practical difference between keyboard types lies in how consistently each key behaves and how long it lasts. Membrane keyboards are cheaper and quieter by default; scissor switches dominate laptops because of their low height.

PropertyMechanicalMembrane (rubber dome)Scissor switch
Key travel3.0-4.0 mm3.5-4.0 mm1.0-1.5 mm
ActuationDefined point before bottom-outUsually at bottom-outNear bottom-out
Rated lifespan per keyTypically 50-100 million pressesOften 5-10 million pressesOften around 10 million presses
RepairabilitySingle switches replaceableWhole sheet replacedDifficult without spares
CostModerate to highLowLow to moderate
Comparison of keyboard technologies

Lifespan figures are manufacturer ratings under laboratory conditions, not guarantees. In practice, mechanical keyboards most often fail through dirt, liquid spills or a single chattering switch, which is easy to replace on a hot-swappable board.

Scanning, rollover and polling

A keyboard controller detects keys through a matrix scan: switches are wired in rows and columns, and the controller energizes one row at a time to read which columns respond. When three pressed keys form three corners of a rectangle, an unintended fourth key can appear, an effect called ghosting.

Mechanical keyboards usually place a diode in series with every switch, which blocks the false current path and enables N-key rollover (NKRO), meaning every key can be registered simultaneously. The USB boot protocol is limited to six keys plus modifiers, so NKRO keyboards use a custom HID report once the operating system has loaded.

The polling rate sets how often the host asks the keyboard for new data. A 1,000 Hz rate corresponds to 1 ms intervals, while some gaming models offer 8,000 Hz, or 0.125 ms. The gain above 1,000 Hz is measurable but small compared with debounce time and display latency.

Layouts, keycaps and build options

Mechanical keyboards come in standardized layout sizes that remove key clusters to save desk space. The ANSI layout used in the United States differs from the ISO layout mainly in the shape of the Enter key and one extra key next to the left Shift.

LayoutKeys (ANSI)What is removedSuitable for
Full size (100%)104NothingData entry with heavy numpad use
Tenkeyless (TKL)87Numeric keypadGeneral use with more mouse space
75%About 84Numpad; navigation keys compressedCompact setups that keep function keys
65%About 68Numpad and function rowPortable and minimalist setups
60%61Numpad, function row, arrowsUsers comfortable with layer shortcuts
Common mechanical keyboard layout sizes

Keycap material affects durability and feel. ABS plastic is common and allows sharp double-shot legends but develops a shine within months of heavy use; PBT plastic resists shine and feels slightly textured. Hot-swap sockets let users replace switches without soldering, and open-source firmware such as QMK allows remapping keys and creating layers.

Common problems and misconceptions

A frequent misconception is that a mechanical keyboard prevents repetitive strain injury by itself. Switch type has a small effect at most; posture, keyboard height, wrist angle and split or tented designs matter far more for ergonomics.

ProblemLikely causeRemedy
Double letters from one press (chatter)Worn or dirty contactsClean or replace the switch; raise the debounce time
Keys missed during fast combinationsNo diodes, so rollover is limitedUse an NKRO keyboard
Excessive noise in a shared officeClicky switches or hard bottom-outUse silent linear switches or dampeners
Shiny, slippery keycapsABS wear from skin oilsReplace with PBT keycaps
Hand fatigue during long typingHeavy springs or poor postureChoose lighter switches; adjust desk height
Typical problems, causes and remedies

Put simply

In a mechanical keyboard, every key has its own small spring-loaded switch, like a row of individual doorbells. In a cheaper membrane keyboard, all keys press onto one shared rubber sheet, more like pushing on a single mattress at different spots.

Because each switch is separate, every key feels the same, lasts longer and can be replaced if it fails. People choose the switch type the way they choose shoes: some prefer a light, smooth press, others a noticeable bump or a click. The keyboard type changes the feel, not how fast someone types.

In practice

A software developer in an open-plan office uses a tenkeyless mechanical keyboard with 87 hot-swappable keys. The original clicky switches draw complaints from colleagues, so the developer replaces all of them with silent linear switches rated at 45 cN, a 20-minute job with a switch puller and no soldering. The lighter springs also reduce finger fatigue during long coding sessions.

After two years, the E key begins to type double letters. Instead of replacing the whole keyboard, the developer swaps that single switch from a small stock of spares in under a minute. The keyboard, now rebuilt to the developer’s preferences, stays in daily service with one inexpensive part replaced rather than a new device purchased.