Does anyone else use Autohotkey? I tend use it to change the keyboard functions in certain games; most frequently, I like to have the 'aim' button in FPS games to work as a 'toggle' button, so one press aims the weapon, & a second press of the same button cancels aim. To do this, I use:

Code:
$q::SendInput, % "{q " ((X := !X) ? "Down" : "Up") "}"
Where q would be the 'aim' button.

My question is, is it possible to modify the macro so that any button press (including a mouse click) would un-toggle the q button? Sorry if it's completely obvious as to how this is done, but as you can probably tell, I've absolutely no idea about these things!