Navigation:  Reference > Events >

Key Down

Previous pageReturn to chapter overviewNext page

This event will be triggered when any key on keyboard is pressed down.  Please note that it is a global event (although its name has no "global" prefix).  You can define its handler in any element, but you may need to check the focus before actually do something.  The figure below shows how:

keydown_focus_check

 

If you need to know which key is pressed in the event handler, you could use the "Current Key Code" system property.  The figure below shows how:

keydown_keycode_check

 

Available for page and all elements.