Wednesday, 2 December 2026

Your Bluetooth keyboard, wired

Your Bluetooth keyboard, wired: a Pico W bridge for KVMs and BIOS screens

Apple no longer makes a wired USB keyboard, and most KVM switches only work with USB keyboards. A Bluetooth keyboard either won't work through a KVM or has to be re-paired on every switch, and a BIOS or bootloader can't see it at all.

This project fixes that: a Raspberry Pi Pico W that pairs with a Bluetooth keyboard and presents it to the computer as a standard wired USB keyboard. It works through a KVM or plugged straight into a computer, and was built with Apple's Magic Keyboard in mind.

Open source (Apache-2.0): github.com/Rob-McKay/bluetooth-to-usb-keyboard

What it does

  • Pairs with Bluetooth Classic or Bluetooth LE keyboards and passes every keystroke to USB.
  • Looks like a standard USB boot keyboard, the kind every KVM, BIOS and bootloader understands.
  • Sends Caps Lock, Num Lock and Scroll Lock back to the keyboard, so its lights stay right.
  • Remembers your keyboard. After pairing it only accepts that keyboard, reconnects as soon as it powers up, and keeps the bond across restarts.
  • Copes with KVMs that cut power when switching. The bridge restarts on each switch and the keyboard is back in about two seconds.
  • Tells the computer the keyboard's layout and country (ANSI, ISO or JIS).

Apple keyboards get special treatment

Apple keyboards leave the Fn key to the Mac's own driver, so through a KVM you normally lose brightness, volume and Mission Control.

The bridge detects an Apple keyboard and applies Fn itself:

  • Fn + top row gives brightness, Mission Control, Launchpad, playback, mute and volume.
  • Fn + arrows give Home, End, Page Up and Page Down; Fn + Delete is Forward Delete.
  • Eject works, including Ctrl+Eject.
  • The Globe key works too, so Fn+C opens Control Centre and Fn+E opens the emoji picker.
  • On Windows, typing, brightness, playback and volume all work; Command (⌘) and Option (⌥) arrive as the Windows and Alt keys.

What you need

  • A Raspberry Pi Pico W (not the plain Pico, which has no radio).
  • A micro-USB cable to your KVM or computer. That's also the power supply.
  • Optional: a push button from GP22 to GND for pairing a new keyboard.
  • Optional: a 3D-printed case. The repo generates one in two versions, snap-fit or screwed with four M2 × 6 screws, with holes for BOOTSEL, the status LED and a pairing slot you can bridge with a small screwdriver.

Getting it running

Download the ready-made .uf2 firmware from the Releases page.

Hold BOOTSEL on the Pico W while you plug it in, then drag the .uf2 file onto the RPI-RP2 drive.

To pair:

  1. Plug the Pico W in. The LED blinks fast while it looks for a keyboard.
  2. Put your keyboard into pairing mode.
  3. If the keyboard wants a code, the bridge types six digits into the computer (open a text editor first). Type them on the Bluetooth keyboard and press Enter.
  4. The LED stays on once connected. Start typing.

To pair a different keyboard later, hold the button, if fitted (or bridge GP22 to GND the case's slot) until the LED flashes quickly (approx three seconds).

How it works

The Pico W's CYW43439 wireless chip connects its Bluetooth core to the same internal bus as Wi-Fi rather than to a serial link, and Zephyr had no driver for that.

Hardware testing turned up several issues, including Bluetooth hearing almost nothing until the Wi-Fi radio was switched off. Details are in the repo's design notes.

Status

In daily use with an Apple Magic Keyboard. Tested with:

  • a generic Bluetooth Classic keyboard, and
  • an Apple Magic Keyboard with Numeric Keypad (A1843, UK), which paired in about three seconds with every key working.

both straight into a Mac and through a KVM to a Mac and a Windows PC. A test run of nearly 18 hours had no drops.

Not yet tried: Bluetooth LE keyboards, keyboards that pair with a code, and the older aluminium Apple keyboards.

Limitations

  • One keyboard at a time, and no mouse.
  • Six-key rollover, as with any boot keyboard.
  • The development build uses Zephyr's test USB IDs.