Get(TriggerKeystroke)
Purpose 
Returns a string containing the characters that activated an OnObjectKeystroke or OnLayoutKeystroke script trigger. Multiple characters may be returned when the input comes from an input method editor (IME).
Format 
Get(TriggerKeystroke)
Parameters 
None
Data type returned 
text
Originated in 
FileMaker Pro 10.0
Description 
Returns a value when running a script triggered by an OnObjectKeystroke or OnLayoutKeystroke script trigger or running a script called from the triggered script; otherwise returns an empty string.
Examples 
The following code displays the text Processing input... when a carriage return is entered:
If [ Code ( Get(TriggerKeystroke) ) = 13 ]
Show Custom Dialog [“Processing input...”]
End If
Note  For information on how functions evaluate differently on the host versus the client, search the FileMaker Knowledge Base available at http://help.filemaker.com.
Related topics 
Functions reference (category list)
Functions reference (alphabetical list)
About formulas
About functions
Defining calculation fields
Using operators in formulas