Key.addListener(this); function onKeyDown(){ if( Key.isDown(Key.LEFT) )testIt(); } function onKeyUp(){} function testIt(){ trace("test"); }