reference:evaluator:keydown

KeyDown(
     string:key,
     [string:key...]
)
bool

Arguments

key

Qualifier key to test for.

key...

Optional. Second qualifier key...

Return value

True if specified key is down.

Description

Returns True if the specified qualifier key or keys are held down. If multiple keys are provided, all must be held down to return true.

Valid keywords are none, shift, ctrl and alt.

Example:

if (KeyDown("shift", "ctrl"")) { ... } // are both shift and ctrl are down?