I am looking for a way to have a script detect whether or not a key is
pressed and held down before it runs.
Basically, I want the script to execute one way if the key is pressed
and another if it is not pressed.
I plan on having the script launched automatically at startup and will
need to have the key pressed before it runs.
Can anybody point me in the right direction to achieve this?
Thanks in advance!