1. Install AutoHotkey
2. Create a Script File
Open a text editor, such as Notepad.
Copy and paste the following code into the text editor:
#if getkeystate("capslock", "t")
w::
send {blind}{up down}
keywait w
return
a::
send {blind}{left down}
keywait a
return
s::
send {blind}{down down}
keywait s
return
d::
send {blind}{right down}
keywait d
return
w up::send {blind}{up up}
a up::send {blind}{left up}
s up::send {blind}{down up}
d up::send {blind}{right up}
Save the file with a .ahk extension (e.g., WASD_Arrows.ahk) on your desktop or in another convenient location.
3. Run the Script
Double-click the .ahk file you just saved.
An AutoHotkey icon should appear in your system tray, indicating that the script is running.