Why one macro fires on both keyboards
This page is part of our guide to setting up a second keyboard as a macro pad.
A macro fires on both keyboards because Windows delivers every key as one merged stream, and the hotkey tool binds to the key, not the device. Microsoft’s Raw Input documentation is the exception: software that registers for it can read a device handle for each keypress.
Standard Windows keyboard messages hide the sender on purpose. The system turns scan codes into virtual key codes and treats all keyboards alike. PowerToys Keyboard Manager states the same limit from the user side: mappings apply to all keyboards. That is why pressing A on the pad and A on the main board run the same macro.
The two-minute isolation test for a misfiring second keyboard
The isolation test separates a shared-key problem from a software bug in five moves: unplug, press, swap, restart, repeat. Run it before you change any settings, because it tells you which fix applies.
Unplug the pad
Press the macro key on the main keyboard. If the macro still runs, the trigger is shared.
Plug the pad back in and press its key
The macro should run once, not twice. A double run points to two tools both listening.
Press the same key on the main keyboard
A run here confirms the shared-key cause.
Check what else is running
Close any second hotkey or remapping tool and repeat. Overlapping tools cause duplicates.
Restart Windows and test again
Some translators load late. A clean restart shows the real behavior.
Write down which step produced the double run. The step number maps directly to a fix below.
Three fixes that stop a second keyboard from triggering macros on the main one
Give the pad keys the main keyboard does not have
Numpad keys, F13 to F24 and media keys are rarely present on a standard board. Windows defines F13 to F24 as virtual-key codes 0x7C to 0x87, so they are valid triggers even without a physical key. Assign them in the pad’s software, such as VIA on QMK boards, then bind your macros to them.
Run a translator that labels each keyboard
HIDeous shows a device hash when you press a key, and you name that hash in settings.ini. After that, its bindings apply to one keyboard only. MultiKeyboard Macros does the same job with a window-based editor and a trial version.
Use a hardware pad and stop fighting the OS
A dedicated macro pad stores its own layers in firmware, so the PC never sees a conflicting key. It costs money, and some apps accept only part of the F13 to F24 range, so test before you buy several.

Troubleshooting table for double-firing macros
| Symptom | Cause | Fix |
|---|---|---|
| Macro runs from both keyboards | Shared trigger | Move to F13 to F24 or add a translator |
| Macro runs twice from the pad | Two tools listen to the same key | Close one tool and retest |
| Pad also types its letter | Original keystroke not suppressed | Use firmware triggers or check the translator option |
| Main keyboard changes behavior | Driver swapped for a shared model | Restore the original driver; choose a different-model pad |
| Works in Notepad, not in one app | Elevated window | Run the remapper as administrator for that app |
| Stops after restart | Tool is not set to start with Windows | Enable its startup option |
Why the pad types letters as well as running macros
The pad types letters when the original keystroke is not suppressed. Tools that only observe Raw Input can read a key but cannot always block it, while tools using a keyboard hook can.
Sending F13 to F24 from the pad avoids the problem in most apps, because those keys have no printed character. The comparison of second-keyboard tools lists which translators we could confirm and which the vendors do not describe.
Where Macro Keys fits when macros misfire
Macro Keys is the action layer, not the device separator, so it cannot fix a shared trigger by itself. Its pages do not say it tells two keyboards apart.
Once the pad sends a unique trigger, the free Macro Keys download gives you text macros, keystroke sequences and a hotkey launcher to attach to it. We built it, so weigh that as developer advice.

Questions about macros that fire on the wrong keyboard
Why does my macro run when I press the same key on the main keyboard?
Windows combines every keyboard into one input stream, so a hotkey tool sees the same key from either board. The macro is bound to the key, not to the device. To change that, give the pad unique triggers or run a translator that reads Raw Input and labels each keypress with its device.
Can PowerToys remap only my second keyboard?
No. Microsoft’s Keyboard Manager page says per-keyboard remapping is not supported, because there is no API to tell which device a keypress came from. PowerToys works well when the second keyboard has keys the main one lacks, such as a numpad beside a tenkeyless board.
Why does my pad still type letters after I add a macro?
The original keystroke can reach Windows before or alongside the macro. Some translators swallow the key and some do not, so test each one. Sending F13 to F24 from the pad’s firmware avoids the issue, since those keys type nothing in most apps.
Is a driver-replacement tool a safe fix?
Use caution. The macroMyKBD README warns that every keyboard of the same vendor and model switches to the winusb driver, so your main keyboard may stop working normally if the two share a model. Read the warning, keep a different-model main keyboard, and know how to restore the original driver.
How do I know the double-firing is fixed?
Press the key on the pad, then the same key on the main keyboard. Only the pad press should run the macro. Repeat in two apps and once after a restart. If the main keyboard still triggers it, the trigger is still shared and needs a different key or a translator.