I have written two functions in an autohotkey script (fun1 and fun2). What I need to do now, is bind function fun1 to when the Pause key is pressed down, and bind the function fun2 to when the Pause key is released. This way I could hide all windows by holding down Pause, and then bring the windows back up when I release Pause (just an example, not my actual objective).
How can I do that in Autohotkey?