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:
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:
Available for page and all elements.