Passwords

I am trying to make a password to access a certain level. heres the code ive come up with…

on (release, keyPress "<Enter>") {
	if(input.text == "35") {
		gotoAndStop(35);
	}
	 else {
		gotoAndStop(55);
	}
}

where the input text box var is “input”

but for some reason, its not working. the “else” command is working perfectly, but when i try and use the password “35” to get to frame 35 it treats it treats it as “else” as if its not recognizing the password.

halp!