Im unclear why this code is not working? What am i doing wrong?
code:
import flash.ui.Keyboard;
import flash.events.KeyboardEvent;
stage.addEventListener(KeyboardEvent.KEY_DOWN, KeyDownFunc);
function KeyDownFunc(event){
if(event.keyCode == Keyboard.UP){
trace("enter");
}
}