keysDown

returns a list of the keys currently being pressed.

# Metadata

Platforms: desktop, server OS: mac, windows, linux Introduced: 1.1 Security:

# Syntax

the keysDown

# Examples

the keysDown

if myKey is in the keysDown then exit to top

# Description

Use the keysDown function to respond to a keypress while a handler is being execute.

The keycodes returned by the keysDown function are the same as those pass as parameters with the rawKeyDown and rawKeyUp messages.

The keysDown function returns empty if no keys are being pressed.

# Tags

ui,

# See

- **message:** rawKeyUp, keyUp, rawKeyDown, keyDown, controlKeyDown - **function:** shiftKey, altKey, capsLockKey, optionKey, commandKey, controlKey - **glossary:** return, keycode, handler, execute, pass, message, parameter - **control structure:** function