How to map Windows key to CTRL key on Windows 10

Is there a way to remap the Windows key to the CTRL key? So whether I press CTRL or the Windows key both will trigger CTRL key code.

Edit:
It looks like if I use AutoHotKey I can use the following script:

LWin::ctrl

This actually is working for me but it requires me to install a separate program and create a hot key script.

The purpose of this is How to use an Apple keyboard with Windows remapping the Windows key to simulate the Apple Command key.


AutoHotKey is unnecessary.

Windows does keymaps via Registry you can find here:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"

Also, the Left and Right Win and CTRL keys each have their own values. If you want both to map to CTRL, you'll have to make sure to specify both in the map:

Right Windows to Right CTRL:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,e0,5c,e0,00,00,00,00

Left Windows to Left CTRL:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,5b,e0,00,00,00,00

Both Windows keys:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,1d,00,5b,e0,1d,e0,5c,e0,\
  00,00,00,00

Backup your Registry, and merge the appropriate entries. Manual entry will work, but the easiest way is to create a text file with .reg extension and insert one of the above entry's like so:

Example .reg file:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,5b,e0,00,00,00,00

Double click it to active it. You can then restart your computer, and you're good to go. If theirs already an entry Scancode Map, this will not work, and you will need to modify it or delete it first.


I've personally used the SharpKeys utility to map the CTRL key on my very old keyboard to the Windows key (which is lacks).


I use Sharpkeys which figures out the Windows registry mapping for you and lets you pick the key combinations from the keyboard.

I've been using this for a few weeks and it's exactly what I needed.