I turned my keyboard into a Codex control surface
by Keiryan Wilson
I don't have a Codex Micro or a Stream Deck. What I do have is a collection of keyboards, including a Keychron Q6 Ultra 8K with a numpad, per-key RGB lighting, extra buttons, and a dial.
That seemed like enough hardware to work with.
So I used Codex to turn it into a dedicated control surface for Codex. The extra hardware cost was $0 because I already owned the keyboard. Getting it to behave the way I wanted took a few interesting detours.
One keypress, one action
I wanted the Q6 to control Codex while my MacBook keyboard kept working normally. Pressing a number on one keyboard should select a task. Pressing the same number on the other should still type a number.
That meant distinguishing the source of each keypress, rather than applying a shortcut everywhere.
I had Codex set up Karabiner-Elements, which identifies the keyboards by their hardware IDs. The special mappings apply only to the Q6. A single physical keypress becomes a dedicated shortcut behind the scenes, and the MacBook stays a normal keyboard.
Holding Num Lock also switches the Q6 back to regular typing. Nice touch.
The lights had to mean something
The status lighting was a big part of what I wanted to reproduce. A task key should tell me whether its task is working, waiting, or finished. Controls that aren't relevant should stay dark.
The keyboard initially disagreed with that last part.
It accepted per-key colors and reported the values back correctly, but keys explicitly set to off still lit up. Sending the values again wasn't going to solve whatever was happening between the saved settings and the LEDs.
I asked Codex to inspect Keychron's firmware source. It found that the lighting renderer was replacing each key's brightness with the global brightness setting. A key could have a stored brightness of zero and still illuminate.
Codex patched the calculation to respect both values, then built custom firmware. After flashing it, I checked the physical keyboard: one illuminated key, everything else dark.
Custom firmware. For a keyboard project. That was the part that really got me.
Make every control reach the same task
With multiple Codex windows open, another problem showed up. Voice input could reach one task while a different control affected another window.
Using an adapted bridge from the open-source Codex Deck project, I had Codex tie those actions to the selected task and its window. Dictation, reasoning adjustments, and approvals now follow the same target. Codex itself handles the microphone and transcription.
The result is six physical task slots, dedicated voice and approval controls, status lighting, and a knob for reasoning effort.
The demo
In the video, I hold the numpad's zero key to dictate, release it to transcribe, and press Enter to send. I show a task key lighting up while Codex works, switch into plan mode, and use a dedicated button to accept the plan.
I also remembered to show the dial: press it to bring up the intelligence control, rotate it to change the setting, and let it settle on the selection.
This project was built with GPT 5.6 Sol. For me, the interesting part was seeing the work stretch from keyboard mappings to application behavior and all the way down to firmware, with a change I could verify on the hardware in front of me.