I use AutoHotkey to map the escape key to the caps-lock key which is useful when using Vim.

To run the ahk script on startup of Windows 10 I used this article

Here is my script to to do the mapping, which is placed in my users Startup folder:

#caps.ahk (C:\Users\davidma\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup)