Windows: Swap CapsLock Alt Ctrl Keys
For a easy solution without code, use Microsoft PowerToys
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 Capslock::Ctrl
To have the file run when Windows starts, see Windows: Add App to Auto Start
;; swap Alt and Ctrl ;; this doesn't work perfectly, when you need to press Shift or others with Alt or Ctrl Ctrl::Alt Alt::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