This input element demonstrates how to use keylisteners to control actions in a dom element:
Full explanation about this example here: http://caridy.name/2009/03/yui3-keystroke-events/