Form Element (input):

This input element demonstrates how to use keylisteners to control actions in a dom element:

More info:

Full explanation about this example here:
http://caridy.name/2009/03/yui3-keystroke-events/