Second Keyboard as a Macro Pad on Windows
A spare USB keyboard becomes a macro pad on Windows when a small reader tool separates it from your main keyboard and hands each key to a hotkey program. This page covers Windows 10 and 11, explains why the setup needs a helper, and flags the tools that install a driver.
Install a reader tool that listens to one keyboard through Windows Raw Input, block that keyboard's normal typing, and make each pad key send a spare function key such as F13. Then a hotkey program runs the macro when it sees that key.
- Applies to
- Windows 10 and 11
- Time needed
- 30 to 60 minutes
- Difficulty
- Advanced
- Cost
- Free software, spare keyboard
- Needs admin rights
- Usually not
- Last verified
- November 2026
This page is part of our guide to macro keyboard software without drivers. If your pad stores its own keymap, the programming guide for onboard memory is simpler.
Why Windows cannot tell two keyboards apart
Windows sends the keys from every attached keyboard into one stream, so a hotkey fires the same way whichever keyboard you used. Only programs that ask for Raw Input can read each device separately.
Microsoft's developer blog explains the mechanism: an application registers for raw keyboard input and receives a device handle with each key. That handle is how tools tell your main keyboard from the spare. Ordinary hotkey programs never see it.
What to expect from a spare keyboard in daily use
A reader tool adds a slight delay, usually unnoticeable for launches but visible when you fire several macros in a row. Sleep, hibernation and unplugging can also drop the tool's device ID.
Hot-plugging a pad to another USB port can change its identifier, so write down which socket you used. Laptop owners often leave the spare permanently attached to a dock. Cheap keyboards with no media keys still work, because the reader only cares that Windows reports a distinct device handle. Wireless dongles, barcode scanners and numeric keypads qualify too, which makes a drawer of old peripherals a decent source of hardware.
The Raw Input Ladder
The Raw Input Ladder is a four-step order of work: identify the device, read its keys, block or tag them, then hand off to a hotkey tool. Skipping a rung is the usual cause of a pad that types letters into your document.
- Identify the pad. Unplug and replug it while the reader tool is open, and note the device ID that appears.
- Read its keys. Press each key and confirm the tool logs it against the right device.
- Block normal typing. Stop the pad from typing letters into the active window.
- Hand off to a hotkey tool. Send a spare function key and let a script or program react.
Reader tools compared, and which install a driver
Four community tools cover this job, and only one of them swaps the keyboard driver. The table lists how each separates the devices and what to watch for.
| Tool | How it works | Driver change | Watch for |
|---|---|---|---|
| LuaMacros | Reads a chosen keyboard, often paired with AutoHotkey | None mentioned | Needs a short Lua script and an ID step |
| HIDeous | Windows app that turns a keyboard into a macro pad | None mentioned | Check the project page for current status |
| NotEnoughHotkeys | Blocks the secondary keyboard and runs your macros | None mentioned | Apps with global key hooks still receive input |
| macroMyKBD | Takes direct USB control of the device | Yes: switches it to WinUSB | Affects every keyboard of the same model |
macroMyKBD's own page says every keyboard of the same vendor and model will use WinUSB afterwards. If your spare matches your main keyboard, you could lose normal typing on both.
The spare-key hand-off
The hand-off is simple: each pad key makes the reader send a function key between F13 and F24, and a hotkey tool listens for that key. Because few physical keyboards have those keys, collisions are rare.
#Requires AutoHotkey v2.0
F13::Run "calc.exe"
F14::Send "Thank you for your message."The sample above is AutoHotkey v2 syntax: F13 opens Calculator and F14 types a sentence. Typed text shortcuts can also live in a program such as Macro Keys, whose hotkey launcher is described as using Alt, Shift or Ctrl combinations, so send a modified F-key from the reader.
Setup checklist for a macro pad on Windows
Eight small checks catch nearly every second-keyboard problem before it wastes an evening.
Admin-level windows may ignore the pad, for the same reason they ignore any macro program; the troubleshooting table explains the fix.
Questions about using a second keyboard as a macro pad
Answers to the problems that stop most setups.
Does Windows treat two keyboards separately?
Not for ordinary hotkeys. Windows merges the input from every keyboard, so a normal shortcut cannot tell which one you pressed. A program that reads Windows Raw Input can see each device by its own handle, which is how second-keyboard tools work.
Do I need a driver to use a second keyboard as a macro pad?
Usually no, but check each tool. LuaMacros-style readers run as normal programs, while macroMyKBD replaces the keyboard driver with WinUSB, which affects every keyboard of the same model. Read the tool page for the word "driver" before you install it.
Which keys should I use as hand-off keys?
Use F13 to F24. Few physical keyboards have them, so they rarely clash with real shortcuts. Give each pad key one function key, and write the mapping on a note so you can rebuild it after a reinstall.
Can PowerToys remap only the second keyboard?
The PowerToys Keyboard Manager documentation describes remapping keys and shortcuts but not per-device rules. For a keyboard that must act differently from the main one, use a Raw Input reader tool and keep PowerToys for global remaps.
Is it safe to run a tool that reads a second keyboard?
It is as safe as the tool you trust. A reader sees every key on the device you select, so download it from its official project page, read what it logs, and avoid running it on a work PC without approval.
Related setups worth reading
If a pad with onboard memory sounds easier, the programming guide compares the options. For work PCs, read the workplace policy walkthrough before you install any reader tool.