KeyboardEvent

Im trying to get the user’s input but its not working for me, ive used refferances from this link http://www.kirupa.com/developer/as3/using_keyboard_as3.htm but it doesnt seem too work, im not sure why. When i run my program and type A no errors come up, but also nothing else happens. Here is my code

//Keyboard letter inputfunction setup()
{
	stage.addEventListener(KeyboardEvent.KEY_DOWN, keyPressed)
}
setup()


function keyPressed(keyEvent:KeyboardEvent)
{
	if (keyEvent.keyCode == 65)
	{
		if(letA.parent)	letA.parent.removeChild(letA)
		boolA = false
	}
}

any help is appreciated :slight_smile: Bimzy