public class Main extends Sprite { private var keyoutput:TextField; public function Main() { keyoutput = new TextField(); keyoutput.text = "Press any key..."; keyoutput.autoSize = TextFieldAutoSize.LEFT; keyoutput.border = true; keyoutput.background = true; addChild(keyoutput);