PCMag editors select and review products independently. If you buy through affiliate links, we may earn commissions, which help support our testing.

Shortcuts, Hotkeys, Macros, Oh My: How to Remap Your Keyboard

If you're looking to change key functions on your computer's keyboard in Windows or macOS, these methods can help.

 & Whitson Gordon Contributing Writer
 & Jason Cohen Senior Editor, Help & How To
Our Experts
LOOK INSIDE PC LABS HOW WE TEST
65 EXPERTS
43 YEARS
41,500+ REVIEWS
(Credit: Zain bin Awais)

Other than the new dedicated Copilot key on some new Windows 11 PCs, the standard Windows keyboard layout hasn't changed much in the past few decades. However, there's it's likely that you don't even use every key on your keyboard. Thanks to a variety of free software options, you can set individual keys to new functions or remap complex button combinations into simplified single-button presses. For instance, you could give the Caps Lock key a new function or open the Task Manager with one keystroke instead of three. The option you choose comes down to comfort level and how complex your solution needs to be.


Remap Keys and Shortcuts With PowerToys

Don't trust a third-party developer? The easiest way to remap your keyboard is through Microsoft PowerToys, a set of utilities (including keyboard customization) designed for power users. Install the program from its GitHub page and open the Power Toys Settings page from the Windows System Tray.

Click Keyboard Manager, then select Remap a key to re-assign individual keys or Remap a shortcut to assign hotkey combinations to a single key. Click the + button, then set the key and map it to a specific action. So instead of hitting Ctrl-C to copy, you can assign that shortcut to the left Alt button. Add as many remapped keys or shortcuts as you need, then click OK at the top to save the changes. Want to remove your shortcuts? Click the trash can next to the listing to delete it.

PowerToys
(Credit: PCMag / Microsoft)

Switch Individual Keys With SharpKeys

If you merely want to remap one key to another, SharpKeys is a simple, open-source program that uses the Windows registry. This makes it the best option for these kinds of one-to-one key remappings. You don't need to rely on some other software as a middleman, and you'll run into the fewest compatibility issues, since Windows itself is interpreting the keystrokes.

(Credit: RandyRants LLC)

Download the program from the Microsoft Store and start it up. To remap a key, click Add and choose your keys from the two columns. The left column denotes the key you'll press (the Caps Lock key) and the right denotes the action that key will take (acting as the Windows key). You can also press Type Key and select a key on your keyboard. When finished, click OK.

Repeat this process for any other remappings, then click Write to Registry. As an example, I use SharpKeys to make my Alt key act as the Ctrl key, and my Caps Lock act as the Windows key. Close the program, restart your computer, and you should find your keys have taken on their new roles. You can even delete SharpKeys when you're done; the program is merely a user-friendly interface for the Windows registry, so once the changes are made, you don't need it anymore.

SharpKeys
(Credit: RandyRants LLC)

Customize Hotkeys With Your Keyboard's Software

If your keyboard comes with custom software, like Logitech's Gaming SoftwareCorsair's iCUE, or Razer's Synapse, you may already have some key-remapping features. Many of these programs let you remap keys, create multi-key shortcuts, insert blocks of text, and create different profiles for each of your games. Some will even let you record macros, allowing you to create complex shortcuts just by recording your actions and assigning them to a hotkey.

Each of these programs are a bit different, but the gist should be the same: Install the software, select your keyboard, and look for the option to create new hotkeys, macros, or actions. When in doubt, check the support page for your specific keyboard to find tutorials on how to get it done. Your mileage may vary here, as I've found some programs to be jankier than others. But if you already have it on your system, it may be able to do exactly what you want without installing any other software.

Logitech's Gaming Software
(Credit: PCMag / Logitech)

Create Complex Scripts With AutoHotkey

If neither of the above options suit your needs, you can create powerful hotkeys with AutoHotkey, a free program that comes with its own scripting language for you to describe the actions you want your hotkeys to take. It's a bit more difficult to use than the software you get with gaming keyboards, but if you don't have an alternative, it's your next best bet.

After installing AutoHotkey, create your hotkeys by right-clicking anywhere in File Explorer and choosing New > AutoHotkey Script. Right-click on the resulting file and open it in Notepad. Let's say you want to remap Ctrl-Shift-Esc to Caps Lock, so you can see the Task Manager with one keypress. You'd create a line in the Notepad like Capslock::^+Escape (where ^ corresponds to Ctrl and + to Shift, as described here). You can add a comment above it using a semicolon (;) to add a note.

You can also create hotkeys to type lines of textrun a program, or create shortcuts for specific programs. Hotkeys can even be written to perform multiple actions in a series, giving you robust control over your shortcuts. For more advanced instructions and ideas, check out the AutoHotkey documentation and forums.

Once you've finished adding your hotkeys, save the file and double-click on it. This will launch AutoHotkey in the system tray, and it'll run in the background, interpreting your hotkeys. Just quit the program at any time to set your keys back to their default actions. (I recommend adding your .ahk script to Windows' startup folder, located at %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup, so it'll automatically run when you boot up your PC.)

(Credit: PCMag / AutoHotkey)

Reassign Simple Shortcuts on a Mac Keyboard

If you want to customize existing keyboard shortcuts on a Mac, open System Settings > Keyboard > Keyboard Shortcuts. You can then browse through existing shortcuts for taking a screenshot, showing the desktop, using accessibility options, and more. To make a change, double-click on the current keys for a specific action, then press the new configuration on your keyboard.

Your new action must use the Control, Option, or Command key. So for instance, if you want to change how you open the screenshot menu, select Screenshots and double-click the keyboard shortcut next to an individual action, such as Save picture of screen as a file. You can then change the Shift-Command-3 shortcut to something simpler, like Option-Z. If your new shortcut is already in use, macOS will show a warning. You can disable actions by unchecking the box next to it.

(Credit: PCMag / Apple)

Want to create custom keyboard shortcuts for your favorite apps? Click App Shortcuts, choose the app, and then enter the exact menu command to create the in-app shortcut. Sick of pressing Fn-F12 to raise the volume on your Mac? For one-button shortcuts, choose Function Keys and enable Use F1, F2, etc. keys as standard function keys on the Keyboard settings page. Now you just have to press F12.

macOS also lets you alter the behavior of individual modifier keys, such as Caps Lock, Control, Option, Command, and Globe/Function. To make changes, open Modifier Keys and change what each button does. However, you won't be able to turn any other keys into another or create custom shortcut. For more powerful options, you can turn to the free programs Karabiner-Elements and FunctionFlip.

(Credit: PCMag / Apple)

About Our Experts

Whitson Gordon

Whitson Gordon

Contributing Writer

Whitson Gordon is a writer, gamer, and tech nerd who has been building PCs for 10 years. He eats potato chips with chopsticks so he doesn't get grease on his mechanical keyboard.

Read full bio

Jason Cohen

Jason Cohen

Senior Editor, Help & How To

My Experience

As PCMag's editor of how to content, I have to cover a wide variety of topics and also make our stories accessible to everyday users. Considering my history as a technical writer, copywriter, and all-around freelancer covering baseball, comics, and more at various outlets, I am used to making myself into an expert.

I believe tech corporations are bad, but you might as well know how to use technology in everyday life. Want more how to content delivered right to your inbox? Sign up for the tips and tricks newsletter that I curate twice a week.

The Technology I Use

My job as how-to guru means I use just about every gadget under the sun, so I can figure out how everything works. I work from a Lenovo ThinkPad running Windows 11, but also have a very large Dell Inspiron 17 3000 and Apple silicon MacBook. I also have a Google Pixel 6a for personal use and use a Galaxy Z Flip 4 for additional Samsung-related testing. For iOS coverage, an iPhone 13 mini works like a charm, though it's already becoming a little long in the tooth.

My desktop situation includes a dual monitor setup with a modest Acer monitor. I also use a Logitech mouse (who can use these ThinkPad trackpads) and a Havit keyboard (my first mechanical keyboard; I love it but my wife hates it!). I'm a recent convert from wired headphones; I have Anker Soundcore Liberty Air wireless earbuds for personal use and have taken to the Sennheiser HD 450BT headphones for work.

Whenever I have a second to myself, I'm probably gaming on my Nintendo Switch, Steam Deck, or Xbox Series S. I also still have a bunch of classic consoles lying around as well.

  • Breaking down complicated and confusing processes into simplified instructions
  • Finding new tech problems to solve
  • OS-level tips and tricks

Read full bio