Home / Fix Macros That Fire on Both Keyboards in Windows

Fix Macros That Fire on Both Keyboards in Windows

Your pad macro also runs from the main keyboard. Here is why Windows merges the two, a short test that finds the cause, and three fixes.

NewSoftwares.net editorial teamPublished November 2026Last verified: November 20265 min read

Quick answer

A macro fires on both keyboards because Windows merges every keyboard into one input stream, so a tool binds to the key and not the device. Give the pad keys the main keyboard lacks, or run a translator that labels each keyboard.

Isometric illustration of two small keyboards merging into one input hub block
At a glance
Plug-in stateTwo keyboards, one macro
Time needed10 to 20 minutes
DifficultyModerate
CostFree options exist
Applies toWindows 10 and Windows 11
Last verifiedNovember 2026

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.

  1. Unplug the pad

    Press the macro key on the main keyboard. If the macro still runs, the trigger is shared.

  2. 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.

  3. Press the same key on the main keyboard

    A run here confirms the shared-key cause.

  4. Check what else is running

    Close any second hotkey or remapping tool and repeat. Overlapping tools cause duplicates.

  5. Restart Windows and test again

    Some translators load late. A clean restart shows the real behavior.

Name the result

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.

Macro Keys Macro Shortcuts window before any macros are added
A fresh Macro Keys install shows an empty shortcut list and an Add macro button.

Troubleshooting table for double-firing macros

Double-firing symptoms and fixes
SymptomCauseFix
Macro runs from both keyboardsShared triggerMove to F13 to F24 or add a translator
Macro runs twice from the padTwo tools listen to the same keyClose one tool and retest
Pad also types its letterOriginal keystroke not suppressedUse firmware triggers or check the translator option
Main keyboard changes behaviorDriver swapped for a shared modelRestore the original driver; choose a different-model pad
Works in Notepad, not in one appElevated windowRun the remapper as administrator for that app
Stops after restartTool is not set to start with WindowsEnable its startup option
Test plan: 1) unplug the pad, 2) press the macro key on the main keyboard, 3) replug, 4) press the pad key, 5) restart and repeat.

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.

Red circular check icon from the Macro Keys reliability feature
Reliability starts with unique triggers.

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.

Related help for double-firing macros

Set up the whole pad

Start from the beginning with the full guide.

Open the guide →

Compare translators

See how three tools separate keyboards.

Compare the tools →

Check workplace rules

Ask IT before installing a key reader.

Use the checklist →