## Test Key State

This function is used to modify the action test state based on a selected modifier key being pressed or not pressed.

A test result is calculated as follows:

Not unchecked
  The result is true if the key is pressed, otherwise the result is false.
Not checked
  The result is true if the key is not pressed, otherwise the result is false.

The action test state is set as follows:

Set
  The test state will be set to the result.
And
  If the result is false, the action test state will be set to false, otherwise it will not be modified.
Or
  If the result is true, the action test state will be set to true, otherwise it will not be modified.

eg. Test if the Command key is pressed and the Shift key is not pressed:

- Test if the Command key is pressed (Set result)
- Test if the Shift key is not pressed (And result)
- if true
- - ...
- endif