I have an input type = text text box... I want to create a function that says if enter is pressed, then run javasript code validatetext if not dont do anything. How would i go about doing this?