YUI().use('node', 'node-simulate', function (Y) {var button = Y.one('#myButton');button.simulate('keyup', { keyCode: 27 });});