Keyboard controls converted to YUI