eventKeyboardEvent Object

An object that contains information about the keyboard event, such as the key that was pressed. The properties available to you in this object are defined and set by the client's browser.


Specify the Javascript for this event. The onKeyUp event fires when the user presses a Key down and then releases the key; all while the element has focus.


The onKeyUp event fires when the user releases a key that has been pressed. It is the last event to fire after the onKeyDown and onKeyPress events.

You can add Action Javascript, custom JavaScript, or sever-side Xbasic to execute one or more actions to this event.

For more information about keyboard events, see Mozilla's documentation on KeyboardEvents or the developer documentation for your favorite web browser.


// Submit the UX if the Enter Key has been pressed
if (event.keyCode == 13) {
    // Enter key has been pressed

    // Simulate clicking the SUBMIT button:

See Also