How to Assign Macros to a Second Keyboard or Number Pad
A spare keyboard or number pad makes a handy macro board: one hand types data while the other hits the macro keys. Windows makes this harder than it sounds, because it treats all keyboards as one. This page covers the three workable approaches and a quick test to see which one you need.
Windows merges all keyboards into one stream, so a plain macro tool cannot give a second keyboard its own macros. Use a tool that identifies the device, a macro pad that ships with its own software, or unused keys such as F13 to F24 on one keyboard.
| Applies to | Windows 10 and Windows 11 with two USB keyboards or pads |
|---|---|
| Time needed | About 30 minutes (our estimate) |
| Difficulty | Intermediate |
| Cost | Free tools exist; extra hardware is your own cost |
| Test used | The which-device test |
| Last verified | November 2026 |
Why a second keyboard is not automatic
Windows combines input from every keyboard into one stream, so a key press carries no label saying which keyboard it came from. A macro tool that listens at that level fires the same macro from either device.
Plug in a number pad and press 5. Windows sees a 5, the same as on your main keyboard. Most macro tools get their keys after this merge, so they cannot tell the two apart.
Map a harmless macro to one key, say a short phrase on F13 or a number pad key. Press the same key on both keyboards. If it fires from both, your tool cannot tell the devices apart and you need another approach.
Three ways to get per-device macros
Three approaches work: software that identifies the device, a macro pad whose own software stores the macros, and spare keys on a single keyboard. Pick by how many macros you need and how much setup you will tolerate.
1. Software that identifies each keyboard
MultiKeyboard Macros, a Windows utility, uses extra USB keyboards or number pads as macro triggers. Its page lists Windows 7, 8 and 10, so test on Windows 11 with hardware you can spare. The open-source macroMyKBD needs a driver replacement step using Zadig.
2. A macro pad with its own software
Dedicated pads store macros on the device or in a companion program, so Windows never has to tell the keyboards apart. Read the maker’s documentation to confirm it works with the form’s program and the privilege level it runs at.
3. Spare keys on one keyboard
PowerToys documents that F13 to F24 can be mapped. If your keyboard or pad can send those keys, you get a macro row that never clashes with typing, and no per-device tool is needed.
Choosing between the three approaches
Choose device-aware software if you already own a spare keyboard, a macro pad for plug-and-play, and function keys for a few macros with no extra hardware.
| Approach | Setup effort | Identifies the device | Cost | Main risk |
|---|---|---|---|---|
| Device-aware software | Medium to high | Yes | Check each tool’s page | Driver steps; untested on Windows 11 |
| Macro pad with own software | Low to medium | Not needed | Hardware cost | Vendor software must be installed |
| F13 to F24 on one keyboard | Low | Not needed | Free | Needs a keyboard that can send those keys |
| Best for | Many macros, one desk | Plug-and-play | A few macros |
Safety notes for driver tools
Per-device tools sometimes replace a keyboard driver, which can make a keyboard stop working. Make a restore point first, keep your main keyboard on a different USB port, and use a keyboard you can spare for testing.
- Create a Windows restore point before any driver step.
- Keep the main keyboard unchanged, and change only the spare device.
- Read the project’s own instructions, because steps differ between releases.
- Back up macros before and after, as covered in backing up and sharing your macros.
Where a text-and-key macro tool fits
A text-and-key macro tool gives you the macros, and one of the three approaches gives you the device. Pair them rather than expecting one tool to do both.
The documentation we read for Macro Keys describes typed triggers and a hotkey launcher, and does not describe per-keyboard assignment. So for a number-pad setup, map the pad’s keys to F13 to F24 or a typed trigger, then let Macro Keys supply the text.
Macro Keys is developed by NewSoftwares.net, which publishes this site. Its official page offers a free download for Windows.
Write a short note of which key does what, and keep the exported macro file on a protected drive such as one locked with USB Secure.
Questions about macros on a second keyboard
Can I assign different macros to a second keyboard?
Only with software that can tell the keyboards apart. Windows merges every keyboard into one input stream, so ordinary macro tools cannot see which device sent a key. Dedicated multi-keyboard utilities and macro pads with their own software can.
Does PowerToys support a different mapping per keyboard?
No. Microsoft’s Keyboard Manager page states that different mappings per keyboard are not supported. A remap applies to all keyboards plugged into the PC.
What is the simplest alternative to a second keyboard?
Map macros to function keys F13 to F24. PowerToys documents that those keys can be mapped, and some keyboards and macro pads can send them. They stay out of the way of normal typing.
Will a spare number pad work for macros?
It can, if the software identifies it as a separate device. Without that, its keys are treated like the same keys on your main keyboard, so a macro on one fires from both.
Do I need a driver for per-device macros?
Some tools do. The open-source macroMyKBD project, for example, documents a driver replacement step with Zadig. Read each tool’s instructions first, and make a restore point before changing a driver.
Does MultiKeyboard Macros work on Windows 11?
Its own page lists Windows 7, 8 and 10, so check Windows 11 yourself before buying hardware for it. Try it on a test PC with a keyboard you can spare.
Is a second keyboard worth it for data entry?
It helps if one hand stays on the macro keys and you enter a lot of the same blocks. For a few macros a day, function keys or typed triggers on one keyboard are simpler.
Run the which-device test first
Ten minutes with a harmless macro tells you if your tool can separate the keyboards. If it cannot, pick one of the three approaches above.
Download Macro Keys free →