Windows: Swap CapsLock Alt Ctrl Keys

By Xah Lee. Date: . Last updated: .

For a easy solution without code, use Microsoft PowerToys

Swap CapsLock/Control

Install AutoHotkey [see AutoHotkey Tutorial] , and create a file with the following content, then double click the file to run it.

; AutoHotkey
; make capslock do control

To have the file run when Windows starts, see Windows: Add App to Auto Start

Swap Alt/Control

;; swap Alt and Ctrl
;; this doesn't work perfectly, when you need to press Shift or others with Alt or Ctrl

Buy a programable Keyboard

Best solution for setting keys is to buy a programable keyboard, because it's easy to define keyboard shortcuts and hassle free. See: Programable Keyboards with Onboard Memory

How to Swap CapsLock Ctrl Alt Cmd Keys

AutoHotkey Tutorial

AutoHotkey logo nz9fX