Part of our guide to assigning macros to keyboard keys

How to Assign Macros to a Second Keyboard or Macro Pad

A second keyboard raises one problem the main guide does not cover: Windows treats every keyboard as the same input source. This page explains the limit and the three workable routes around it.

NewSoftwares.net editorial teamPublished November 2026Last verified: November 2026
A full keyboard beside a small four key macro pad connected by a dashed lineKeyboard ATypingMacro padIts own software
Quick answerTo assign macros to a second keyboard or macro pad, use that device’s own software, because Windows and tools such as PowerToys cannot tell one keyboard from another. Select the device in the vendor app, choose a key, and attach the macro; or make the pad send F13 to F24 and map those keys.
At a glance
Applies toWindows 10 and 11 with a second keyboard or pad
Time needed15 to 30 minutes
DifficultyIntermediate
CostVendor software is usually free with the device
Admin rightsNot usually needed
Last verifiedNovember 2026

Why Windows cannot give a second keyboard its own macros

Windows sends the same key codes from every keyboard, so a remapping tool sees a key press without knowing which device made it. Microsoft’s PowerToys documentation says per-keyboard mappings are not supported for exactly this reason: there is no API that reports the source device.

That is why a macro pad rarely works through a general remapper alone. The device usually needs software that talks to it directly, or it must send a key that no other keyboard produces. The three routes below follow from that.

A full keyboard linked by a dashed line to a four key macro pad managed by vendor softwareVendor softwareassigns the pad keys
A pad managed by its own vendor software, linked to your main keyboard.

Route 1: use the pad’s own software

The vendor’s app is the dependable route because it owns the device. Razer documents the pattern on its support page: record or create the macro in Synapse 3, open the Dashboard, select your keyboard from the device list, then assign the macro to a programmable key.

  1. Connect the device

    Plug in the pad or keyboard and make sure its software recognises it. Corsair advises updating iCUE and the keyboard to the latest versions first.

  2. Select the key

    In iCUE, choose the keyboard key you want to hold the remap or macro. Razer’s flow selects the keyboard first, then the key.

  3. Attach the macro

    Pick the recorded macro from the list, save the profile, and test in Notepad before the real app.

Note

For supported Microsoft devices, Mouse and Keyboard Center can assign a recorded macro to a key or mouse button, and its Macro Repeat feature replays a macro until you stop it.

Route 2: send F13 to F24 and map those keys

If a pad can be set to output F13 to F24, those keys are rarely used by apps, and PowerToys documents that F13 to F24 can be remapped. Map each one to text, a program launch or a web address, and the pad behaves like a dedicated launcher.

A pad key sending F13 into a remap tool that triggers a text or launch actionF13Remap toolPowerToys or script
The pad sends an unusual key, and the remap tool turns it into an action.

Keep a table of which pad key sends which function key, since the mapping lives in two places. Both pieces must stay running for the macro to fire, and neither works on the sign-in screen.

Route 3: give each keyboard different combinations

When nothing else works, accept that both keyboards send the same keys and give every macro a distinct combination. Press the combination on whichever keyboard is closer. A key launcher such as Macro Keys belongs in this group, because tools that react to key combinations see both keyboards alike.

Three routes for a second keyboard or macro pad
RouteSeparates keyboards?Needs vendor softwareCostBest for
Vendor softwareYesYesUsually free with deviceMacro pads and gaming boards
F13 to F24 mappingEffectively yesFor the pad onlyFree tools existPads that can send high function keys
Distinct combinationsNoNoFreeTwo ordinary keyboards
VerdictPrefer vendor software when you own a pad, and distinct combinations when you do not.
Named rule

The one-source-per-job rule

Let each physical key send exactly one code, and let exactly one tool turn that code into an action. Two tools reacting to the same key is the main source of second-keyboard bugs.

Warning

Do not set a pad to send Win, Ctrl or Alt alone. Microsoft notes that remapping modifier keys can break gestures and special keys.

Questions about second keyboards and macro pads

Five points that decide whether a second keyboard setup holds up.

Can Windows tell my two keyboards apart?

Not for normal remapping. Microsoft states that PowerToys does not support per-keyboard mappings because there is no API to tell which device sent a keypress. A keyboard that sends unusual keys, or vendor software tied to the device, is the practical way to give a second keyboard its own jobs.

Do I need vendor software for a macro pad?

Usually yes. Razer documents assigning macros to its keyboards through Synapse 3, and Corsair does the same through iCUE. The software stores the macro on the device or in a profile. A generic pad may have its own utility, so check the maker’s documentation for the exact steps.

Can I use my laptop keyboard and an external keyboard with different macros?

Not with Windows alone, for the same device-identification reason. You can still assign different key combinations to each macro and press whichever keyboard is closer, or set the external keyboard to send keys the laptop never produces, such as F13 to F24 where it allows that.

Are F13 to F24 safe to use for macros?

They are a common choice because most apps ignore them. PowerToys documents that F13 to F24 can be remapped. Whether your keyboard or pad can send them depends on its firmware, so test with a key-press viewer before you build macros around them.

Will my macro pad work on another computer?

If the macros live on the pad, usually yes. If they live in the vendor’s software profile, you must install the software and import the profile on the second PC. Export your profile as a backup either way, and keep the file with your other settings.

The Macro Keys installer is listed on the official downloads page. If a pad key stops responding, work through the five checks for a macro hotkey that is not working.

Our recommendation

A launcher that works from either keyboard

Windows reports the same key codes from every keyboard, so a launcher driven by key combinations, such as Macro Keys, suits the distinct-combinations route. The official page lists it as a free Windows download.

Download Macro Keys free → Back to the full guide