Keyboard Function
So I designed this code for arrow down
var to=0
stage.addEventListener(KeyboardEvent.KEY_UP, fl_KeyboardDownHandler_2);
function fl_KeyboardDownHandler_2(event:KeyboardEvent):void
{
to=1 ; gotoAndPlay(6)
}
My question, How do I modify this code so I can gain input from Alphabet. Because I tried
var to=0
stage.addEventListener(KeyboardEvent.KEY_A, fl_KeyboardDownHandler_2);
function fl_KeyboardDownHandler_2(event:KeyboardEvent):void
{
to=1 ; gotoAndPlay(6)
}
But It Doesn't Works