Configure key scripts
- Last UpdatedApr 09, 2025
- 2 minute read
Key scripts are scripts that are linked to the pressing of a specific key or key combination. You can use key scripts to:
-
Execute a script one time when a key or key combination is pressed.
-
Execute a script periodically while a key or key combination is pressed and not released.
-
Execute a script one time when a key or key combination is released.
A key script is identified by the name of key that initiates the script. For example: Ctrl+q.
Note: If you have configured an action script that uses the same key or key combination to trigger it, the key script is ignored and instead the action script is executed.
Configure a key script
-
In the Scripts pane, do one of the following:
-
To configure a new key script, right-click Key, and then select New.
The Key Scripts dialog box appears.

-
To configure an existing key script, expand Key, right-click the script name, and then select Edit. The Edit Key Script dialog box appears.
-
-
Select Key and select a key from the Choose Key dialog box.

-
Select the Ctrl and/or Shift checkboxes to assign a control key and/or shift key combination with your selected key.
-
In the Condition Type list, do one of the following:
-
Select On Key Down to configure a script to execute one time when the associated key or key combination is pressed.
-
Select While Down to configure a script to execute periodically while the associated key or key combination is pressed.
-
Select On Key Up to configure a script to execute one time when the associated key or key combination is released.
-
-
If you selected While Down in the previous step, type a time interval between 1 and 360000 milliseconds in the Every box.
-
Type your script in the window.
-
Select OK.
Delete all key scripts associated with a key
-
In the Scripts pane, expand Key, right-click the key script name, and then select Delete. When a message appears, select Yes.
Delete a key script that is associated with a key
-
Using the Classic View, in the Scripts pane, expand Key, right-click the key script name, and then select Edit. The Edit Key Script dialog box appears.
-
In the Condition Type list, select the script trigger for the script to delete. The script appears in the main section of the Edit Key Script dialog box.
-
On the Edit menu, select Clear. The script from the main section clears and the associated script is deleted.