Control Animation with Keyboard?

Hey all!
I’m trying to create an input field where a user types a word and if correct, the movie progresses to the next frame (I just can’t don’t know how). More importantly, I wondered if there was a way to substitute clicking on a button with hitting a key on the keyboard? So instead of using a “submit” button to check the field’s value… the user can just hit the “enter” or “return” button and the “if” and “gotoandplay” actions will occur. It shouldn’t be TOO hard but I’m not sure. thanks!!