2041altKeyfunctionthe altKeyaltKey()Returns the state of the Alt key.put the altKey into keyStateif the altKey is down then exit mouseUp
repeat until altKey() = up
Added.User InteractionkeysDown FunctionoptionKeyDown MessageUse the altKeyfunction to check whether the Alt key, Meta key, or Option key is being pressed. You can use altKey to add alternative capabilities to user actions such as clicking.The altKeyfunctionreturns down if the key is pressed and up if it's not.The altKey, optionKey, and metaKey functions all return the same value. Which one to use is a matter of preference.
The terminology varies depending on platform. Users of different operating systems may know this key as the Option key (Mac OS systems), Meta key (Unix systems), or Alt key (Windows systems).