...go ahead and read the manual, we won't tell anyone.

Help Topics > All Functions > OptionKey

The optionKey function returns the constant "up" if the Option key is not pressed, and "down" if it is pressed.

Usage:

the optionKey

Example:

if the optionKey is down then answer "Option!"