How to Map Caps Lock to Escape on Windows 11
🔍 WiseChecker

How to Map Caps Lock to Escape on Windows 11

Quick fix: Install Microsoft PowerToys from Microsoft Store. Open Keyboard Manager → Remap a key → pick Caps Lock as source → pick Escape as target. Save. Caps Lock now sends Escape. For permanent without PowerToys: registry Scancode Map at HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layout.

Caps Lock to Escape: common remap for Vim users, accessibility, ergonomic typing. PowerToys is the modern way; registry for permanent without PowerToys running.

Symptom: Want to map Caps Lock to Escape on Windows 11.
Affects: Windows 11.
Fix time: ~5 minutes.

ADVERTISEMENT

What causes this need

Remap reasons:

  • Vim / Emacs users: Caps Lock easier to reach.
  • Accessibility: less travel for Escape.
  • Mac users transitioning: Caps Lock to Control.
  • Programmers: less accidental Caps Lock.

Method 1: PowerToys Keyboard Manager

The standard route.

  1. Install Microsoft PowerToys from Microsoft Store.
  2. Open PowerToys → Keyboard Manager.
  3. Enable.
  4. Click Remap a key.
  5. Click + to add. Source: Caps Lock. Target: Escape.
  6. OK. Save.
  7. Test: press Caps Lock. Should now act as Escape.
  8. For Vim users: works in any text editor.
  9. To revert: Keyboard Manager → remove remap.
  10. For chronic: PowerToys runs at startup; remap permanent.

This is the standard fix.

ADVERTISEMENT

Method 2: Registry Scancode Map for permanent

For permanent without PowerToys.

  1. Open Registry Editor as Admin.
  2. Navigate to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout.
  3. Create binary value: Scancode Map.
  4. Set data:
    00 00 00 00 00 00 00 00
    02 00 00 00
    01 00 3A 00
    00 00 00 00

    This maps Caps Lock (3A) to Escape (01).

  5. Reboot.
  6. Caps Lock now sends Escape system-wide.
  7. To revert: delete Scancode Map value. Reboot.
  8. For multiple remaps: more entries in scancode map.

This is the permanent route.

Method 3: Use AutoHotkey for advanced

For conditional remap.

  1. Install AutoHotkey from autohotkey.com.
  2. Create .ahk file:
    Capslock::Esc
  3. Save. Double-click to run.
  4. For per-app remap (only in VS Code, etc.):
    #HotIf WinActive("ahk_exe Code.exe")
    Capslock::Esc
    #HotIf
  5. For chronic: place script in shell:startup folder.
  6. For Vim with multi-tap: Caps Lock single tap = Esc, hold = Ctrl. Advanced AHK script.
  7. For chronic combination remaps: PowerToys + AutoHotkey.

This is the scripted route.

How to verify the fix worked

  • Press Caps Lock. Escape function fires.
  • Cursor: text input no longer toggle case.
  • In Vim: enters Normal mode.
  • For chronic: works after restart.

If none of these work

If remap fails: Scancode Map syntax: verify binary data exactly. Errors break keyboard. Reboot: registry changes need reboot. For specific gaming keyboards: hardware-level remap. Use vendor utility. For Bluetooth keyboards: same; remap at PC level. For corporate-managed PCs: Group Policy may restrict. For chronic permanent issue: PowerToys + Scancode Map combined.

Bottom line: PowerToys Keyboard Manager → Remap a key → Caps Lock to Escape. Or registry Scancode Map for permanent. AutoHotkey for advanced / conditional remaps.

ADVERTISEMENT