From a Broken Keycap to a Trackball Split Keyboard
The Escape keycap on my Keychron K8 Pro broke at the stem.
I printed a replacement and polished it until it was usable. It did not quite match the original keycap.
That small repair led through a Corne, custom tented cases, wrist rests, a Cosmos-generated keyboard, manufactured single-key PCBs, ZMK, an integrated trackball and, eventually, three microswitch buttons.
One missing Escape key
I bought the Keychron K8 Pro around the end of 2022. It was a conventional tenkeyless mechanical keyboard with hot-swappable switches, QMK support and Bluetooth.
It had already required one software intervention. In March 2023 I updated the Bluetooth firmware while investigating interference; the problem seemed to improve.
In August 2024 the Escape keycap broke. The switch was replaceable, but the cap itself had fractured around the stem.
I identified it as a one-unit OEM row-5 key and generated a replacement with KeyV2, a parametric OpenSCAD keycap library. I printed it, sanded and polished it, and put it on the keyboard.
It was reasonably good. It was not the same shape as the original Keychron cap.
That mismatch opened a surprisingly deep subject. “Cherry-compatible keycap” describes the stem interface, not the surface your finger touches. OEM, Cherry, GEM, MT3 and other profiles vary by row, height, angle, dish and edge treatment.
I tried alternative generators and reference models. A Rhino model would not convert cleanly through FreeCAD. A GEM cap printed nicely but sat too low. One downloadable model looked closer but might not contain a usable stem. Another appeared to match the Keychron shape better.
The broken Escape key was repaired. My attention had moved from one key to the geometry of a keyboard.
Asking for a Corne
In 2025 I started reading about small ergonomic split keyboards: TOTEM, Charybdis, Dactyl variants and especially Corne layouts.
I asked my girlfriend for a Corne as a gift. By September I had a black wired Corne v4 with hot-swap switches, RGB and Vial.
The first experience was not instant ergonomic transcendence. On the Keychron I typed about 52 words per minute in a practice set (51.7 WPM at 98% accuracy). My first recorded Corne sessions were 6 words per minute. I worked up to 14 while keeping accuracy at 100%.
The keyboard forced every habitual reach into the open. Keys which had lived somewhere under a wandering finger now belonged to layers, thumbs or deliberate combinations.
In October 2025 I flashed the crkbd_rev4_1_standard_vial firmware and configured its encoders.
The board became useful enough to travel with me.
The case is part of the layout
The Corne also moved keyboard ergonomics from keymaps into physical space.
I investigated mounting the halves on chair arms, folding tenting stands, high-profile cases, different tilt and tent angles, and a magnetic transport case. I traveled with two purchased wrist rests.
I modified case models to add heat-set-insert cylinders, corner shelves and screw ears for tenting. For a switch plate available only as a laser-cut SVG, I converted the outline to DXF, imported it into Onshape and extruded a 5 mm plate.
The apparently simple conversion omitted clearance for the encoder feet. I filed it by hand.
This is a recurring lesson in personal CAD. A two-dimensional outline can be geometrically correct and mechanically incomplete because the physical assembly contains protrusions the source drawing was never intended to describe.
The Corne was a working keyboard and a platform for learning what I actually wanted from the next one.
Lazaralus, with fewer keys
The Cosmos keyboard generator can produce sculpted split cases around configurable columns, thumb clusters, controllers and pointing devices.
One design in its showcase caught my attention: Lazaralus’s Keyboard. It had deep concave wells, six columns per hand, separated thumb fans and a trackball integrated at the inside front of the right half.
The original has 59 keys. I wanted its physical idea with a Corne-like amount of keyboard.
My version reduced each side to three rows of six finger keys plus three thumb keys:
18 finger keys + 3 thumb keys = 21 per half
42 keys total
It removed 17 keys while keeping the recognizable sculpted wells, split geometry and right-hand trackball.
My notes and files call the generated case Cosmotyl; I think of the project as my Lazaralus-inspired Cosmos.
Why Plum Twist
Cosmos cases need a way to hold switches and connect them through a curved, three-dimensional shell. The preferred Pumpkin Patch PCB was unavailable, did not ship to the European Union and was not open enough to reproduce independently.
The alternative was Plum Twist.
Each small 1.2 mm PCB carries one MX hot-swap socket, one diode and an optional RGB LED. Its outline twists into a matching socket behind one key. Large row and column pads make the collection of tiny boards into a hand-wired matrix.
I ordered Plum Twist boards from JLCPCB. I also prepared stencil geometry and printed a fixture for applying solder paste. My first reflow attempt worked: paste from a syringe, ceramic tweezers, a preheat, then a higher-temperature reflow step on the repaired G3061 hot plate.
I also ordered a panel of 45 PMW3610 sensor boards from JLCPCB. That sensor ended up in the keyboard later; more on that below.
ZMK from the matrix up
The controller is a Pro Micro-compatible nRF52840 SuperMini running ZMK. The right half is central and the left half connects over Bluetooth.
I created cosmos-zmk-config for the keyboard. The first milestone was not a clever keymap. It was a correct 4-by-12 electrical matrix and a split BLE connection which reliably produced 42 keys.
I adapted Mark Stosberg’s Corne layout, then removed home-row modifiers and combinations which did not suit me. The arrangement settled on Base, Lower, Raise and Func layers.
The build is reproducible in two places.
GitHub Actions uses ZMK’s reusable workflow, while the local flake uses zmk-nix with pinned dependencies, including the external trackball driver.
That nRF52 and ZMK experience later became a keyboard controller for the part of boot before the operating system starts.
That last detail came from a real failure.
The GitHub build knew about the external module while the local Nix build did not, failing to link with an undefined device-tree symbol (__device_dts_ord_142).
Adding the driver as a git submodule referenced from config/west.yml and updating zephyrDepsHash fixed the local firmware and turned this into the intended workflow:
nix build .#firmware
nix run .#flash
Adding the trackball
The first sensor was a PMW3389 module driven through George Norton’s ZMK PMW3360 driver. It connected over SPI on the right half and used its motion interrupt.
The physical and software coordinate systems did not agree at first, so the configuration inverted one axis and rotated motion by 270 degrees. Movement activated a Mouse layer for a short interval, and clicks lived on keys. Holding Raise turned motion into scrolling with a much smaller scale.
That version worked, but it was not comfortable. Clicking with layer keys never felt like a mouse. I wanted dedicated microswitch buttons around the ball, like the ones on my Kensington trackball.
Buttons and a new sensor
Buttons were a mechanical problem first.
I extended the Cosmos generator with a parametric button module for KW11 microswitches, written in build123d (using my nix-build123d environment) and positioned by Cosmos itself. It went through numbered revisions: R12 was the first one I liked, R13 placed three buttons around the 55 mm ball, and R17 was the one I printed, assembled and accepted. R18 followed with larger caps and vertical walls exploring sideways-activated mouse buttons.
The buttons also needed pins. The controller has 18 GPIOs on its side headers, and the matrix and the old sensor already used most of them.
The PMW3610 solved that. It uses a single bidirectional data wire instead of separate MOSI and MISO, which freed a pin. With the old sensor’s unused reset wire and a spare, that made three: left, right and middle click, each wired straight to a GPIO. No matrix changes, and one pin still spare.
I tested a Sidera PMW3610 Rev. 2 board on its own first, driven by badjeff/zmk-pmw3610-driver.
On 24 September 2026 I swapped it into the keyboard and flashed firmware with the sensor at 2400 CPI and the three buttons.
I had to use a 4.7 µF capacitor for C1 where the board’s BOM asks for 3.3 µF, because 3.3 µF was hard to find; it works.
A few days of use changed the rest:
- I remounted the sensor while adjusting the lens spacing, which reversed both axes, so the orientation changed again.
- The physical buttons made the Mouse layer pointless, so I removed it. Clicks now work on every layer.
- The PMW3610 is a low-power sensor and drops into rest modes when idle, which made the first movement after a pause sluggish. On USB power the firmware now keeps it awake at 250 Hz; on battery the rest modes still apply.
- Raise+H latches scrolling on, so I don’t have to hold Raise while scrolling a long page.
Still not finished
The remaining problem is wrist support. Early wrist-rest prints were interrupted by printer clogs and delamination. Width turned out to be the main issue, so the button project grew a wrist-rest generator that widens the palm support toward the trackball side. I don’t have the final pair yet.
A keyboard as a chain of repairs
This journey did not begin with a plan to design an ergonomic split keyboard. It began because one plastic stem broke.
Printing the Escape keycap made key geometry visible. The Corne made hand position, layers, tenting and wrist support visible. The Cosmos build made the switch matrix, case sockets, PCB manufacturing, controller and pointing device visible. The buttons made pins, sensors and microswitch mechanics visible.
The Keychron wanted one replacement cap. The Corne invited changes to everything around the PCB. The Cosmos has no meaningful boundary between firmware, electronics and enclosure: the sensor swap was chosen partly to free a pin for a button.
It works today, with the trackball and three buttons. What’s left is the question of whether my body wants to use it all day.