Returns a number for the keyboard modifier keys being pressed.
Data type returned
FileMaker Pro 6.0 or earlier
The number returned is calculated by summing numbers representing each modifier key (for example, Control+Shift) being pressed. The values assigned to the keys are:
•Shift = 1
•Caps Lock = 2
•Ctrl (Windows) and Control (OS X) = 4
•Alt (Windows) and Option (OS X) = 8
•Command (OS X) = 16
•In FileMaker WebDirect, this function is not supported and returns 0.
Returns 9 when Shift+Alt is pressed on a computer running Windows.
You could use this function in a script that includes a custom dialog box script step (with an OK and Cancel button) to perform some special action if the user presses the Alt (or Option) key while clicking OK.