How to Program a Macro Keyboard or Second Keypad on Windows
A macro keyboard turns one key into a stored sequence, and a second keypad does the same on a spare set of keys. The setup is simple once you know whether the macro lives in the keyboard or on the PC.
Quick answer
To program a macro keyboard, open its configurator, select a key, choose a macro slot, record or type the sequence and save it to the keyboard. Keyboards that use VIA or QMK store macros on the device, so they work on any computer, while some vendor apps keep them on the PC and need the app running.
| Applies to | Windows 10 and Windows 11, with VIA, QMK and vendor apps |
|---|---|
| Time needed | 15 to 30 minutes for a first key |
| Difficulty | Intermediate |
| Cost | Free software; the keyboard is separate |
| Needs admin or internet | Internet for a web configurator; admin rights only for some vendor installers |
| Last verified | November 2026 |
Macro Pad, Macro Keyboard or Second Keyboard
The three names overlap, but the setup path differs. A macro pad is a small separate device, a macro keyboard has programmable keys inside a full layout, and a second keyboard is any extra keyboard you reserve for shortcuts.
| Device | Stores macros | Typical setup tool | Good for |
|---|---|---|---|
| Macro pad | Usually on the device | VIA, QMK or a vendor app | One-key actions and shortcuts |
| Macro keyboard | Usually on the device | Vendor app or VIA | Gaming and editing layouts |
| Second keyboard | Rarely, unless it is programmable | PC-side tools | A cheap shortcut keyboard |
Where the Macro Lives: Keyboard or PC
The first question when you program any keyboard is where the saved macro lives. On the keyboard means it travels between computers; on the PC means it depends on software that must be running.
The where-it-lives rule is the one to apply before buying or configuring a device: prefer on-keyboard storage if you move between computers, and PC-side storage if you want to change macros without opening a configurator.
QMK’s documentation describes this difference clearly for its dynamic macros, which sit only in working memory and vanish at power loss.
Program a Keyboard with VIA
In VIA, open the Configure tab, choose Macros, record keystrokes into a slot, stop, then assign that macro to a key on the keymap. Guides for VIA keyboards describe a recorder and a text box, with slots numbered from M0.
Open the Configure tab
Connect the keyboard, open VIA and select your keyboard from the device list.
Open Macros and pick a slot
Choose an empty slot such as M0 in the macro list.
Record the keystrokes
Use the record control, perform the sequence, then stop. A keyboard-only run replays most reliably.
Save it and assign a key
Save the macro, then in the keymap section assign the macro keycode to a physical key.
QMK Macros and Dynamic Macros
QMK offers two kinds. Static macros are defined in the keymap, and the keymap.json format supports up to 32 of them. Dynamic macros record on the keyboard with keycodes like DM_REC1, DM_PLY1 and DM_RSTP.
The dynamic type is temporary: QMK says these macros are lost when the keyboard is unplugged or rebooted. QMK also warns against recursive macros, such as macro 1 replaying macro 1, which can make the keyboard unresponsive until you unplug it. If the lights blink while recording, the macro buffer is full.
Vendor Apps: Logitech G HUB and Corsair iCue
Vendor apps wrap the same idea in their own interface. Digital Trends describes Logitech G HUB with a Record keystrokes option, and Corsair iCue with a Macro icon where you add a macro and then record or insert inputs.
Menus change between versions, so treat these as the general pattern. Many vendor apps keep macros in a profile on the PC and may also write them to the device, so check which one your keyboard does before you rely on it away from home.
A Second Keyboard on the Same PC
Windows tools do not tell two keyboards apart. PowerToys documents that different mappings per keyboard are not supported, so a PC-side remap would apply to both keyboards.
The practical answer is a pad that stores its own macros, or a pad key that sends an ordinary shortcut which a PC-side tool then listens for. The second approach works with any hotkey tool, including our free Macro Keys utility, although pairing it with a specific pad is your own test to run. For the tool comparison, see the page on macros, hotkeys and text expanders.
Test a Programmed Key Before You Rely on It
Run every new key in a blank Notepad window first, then in the target app, then after unplugging and reconnecting. Those three tests catch buffer, timing and storage faults.
If a macro fails, run the four-check order for macros that fail, and copy the keymap with the steps in the guide to macro backups.
Questions About Macro Keyboards
Five short answers on storage, limits and policy for macro pads and second keypads.
Do macros on a macro pad work on any computer?
Yes when they are stored in the keyboard’s own memory, as with VIA and QMK saved macros. The pad replays them wherever it is plugged in. Macros held by a vendor app on the PC stop working when that app is closed or missing.
Why did my QMK macro disappear when I unplugged the keyboard?
You recorded a dynamic macro. QMK’s documentation says dynamic macros are temporary and are lost when the keyboard is unplugged or rebooted. Save the sequence as a static macro in the keymap, or in VIA, so it persists. Back up the keymap file once the macro works.
Can I give a second keyboard different macros?
Yes, if that keyboard stores its own macros or has a vendor app. Windows tools do not separate keyboards: PowerToys documents that different mappings per keyboard are not supported, so a PC-side remap would affect both. Put the macro inside the keyboard that needs it.
How many macros can I store?
It depends on the firmware and the keyboard. QMK’s keymap.json supports up to 32 macros, and VIA guides show numbered slots starting at M0. Check your own keyboard’s documentation, because memory is the real limit. Count your macros before you buy a model for its slot number.
Is a macro keyboard allowed at work?
It depends on policy. A pad that types text or opens apps is low risk, while one that clicks through approvals or sends data is not. Ask IT before you plug unfamiliar hardware into a managed PC, and keep passwords out of every macro.
A free typed-macro tool for the PC side
If your keyboard has no memory of its own, Macro Keys can hold the typed macros on the PC; the download is free.