Skip to content

Instantly share code, notes, and snippets.

@AbeEstrada
Last active January 20, 2026 14:57
Show Gist options
  • Select an option

  • Save AbeEstrada/951f1940d6c80c46594fd15f5ca1cc73 to your computer and use it in GitHub Desktop.

Select an option

Save AbeEstrada/951f1940d6c80c46594fd15f5ca1cc73 to your computer and use it in GitHub Desktop.
Windows 10/11 registry modification to replace Caps Lock by Escape
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,01,00,3a,00,00,00,00,00
; Data = 00000000 00000000 0200000000 01003A00 00000000
; 0x00000000 Header: Version. Set to all zeroes.
; 0x00000000 Header: Flags. Set to all zeroes.
; 0x00000002 Two entries in the map (including null entry).
; 0x003A001D CAPS LOCK --> ESC key (0x3A --> 0x01).
; 0x00000000 Null terminator.
@AbeEstrada
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment