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.
| Applies to | Windows 10 and 11 with a second keyboard or pad |
|---|---|
| Time needed | 15 to 30 minutes |
| Difficulty | Intermediate |
| Cost | Vendor software is usually free with the device |
| Admin rights | Not usually needed |
| Last verified | November 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.
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.
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.
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.
Attach the macro
Pick the recorded macro from the list, save the profile, and test in Notepad before the real app.
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.
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.
| Route | Separates keyboards? | Needs vendor software | Cost | Best for |
|---|---|---|---|---|
| Vendor software | Yes | Yes | Usually free with device | Macro pads and gaming boards |
| F13 to F24 mapping | Effectively yes | For the pad only | Free tools exist | Pads that can send high function keys |
| Distinct combinations | No | No | Free | Two ordinary keyboards |
| Verdict | Prefer vendor software when you own a pad, and distinct combinations when you do not. | |||
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.
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.
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.