You can use the consoleLib.key_interrupt system variable to specify the name of the keyboard key that simulates an interrupt. The default key is CONTROL_C. For a list of key names, see Names for keyboard keys in EGL.
Type: CHAR(32)
consoleLib.key_interrupt = "KEY_z";