Using Type Input in Conditional Statement

If the user types “ball” in the input textfield, instance name: name_txt, I want to move to the next frame and stop. Can somebody tell me, what I am doing wrong here? Thank you!

submit_btn.addEventListener(MouseEvent.CLICK, onClick);

function onClick(event:MouseEvent):void
{
if(name_txt.text == “ball”)
{
gotoAndStop(2);
}
}