I've been successfully using an AHK script for almost a year which maps Ctrl-C and Alt-E-S-V (an Excel shortcut) to Win-key combinations, and maps Ctrl-Del to Ctrl-Space, Ctrl-- (delete row).
However, occasionally (and more and more frequently), the computer thinks that the Win or Ctrl key is still held down. I've spent a long time looking for a fix and nothing has worked for me, including various script rewrites and uninstalling and reinstalling AHK.
Here's my script:
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
;map ctrl-c, ctrl-v, and ctrl-e-s-v (paste values) to win-key combos
#a::Send ^c
#s::Send ^v
#q::Send !e,{s},{v}{Enter}
*CapsLock::Send {Media_Play_Pause}
Return ;disable CapsLock permanently
;map win-x to ctrl-alt-/ - shortcut to open 'everything.exe', then close it automatically when it's not in focus
#x::
Send ^!/
Sleep, 1000
WinWaitNotActive, ahk_class EVERYTHING
WinClose, ahk_class EVERYTHING
return
;win-z to prt scn
#z::Send {PrintScreen}
;map ctrl-del to select whole line and delete it
~^Del::
Send +{space}
Send ^-
Send {Left}
return
Edit: this person had the same problem as me, though none of the fixes suggested in that thread helped me.