check this post out:
It has an AHK script you can change that is hold and release (the macro will only work while holding it down.