You can use the consoleLib.key_accept system variable to specify the name of the keyboard key that allows a user to end an openUI statement. The default key is ESC. For a list of key names, see Names for keyboard keys in EGL.
Type: CHAR(32)
consoleLib.key_accept = "KEY_x";