Made the input field function as a form, for example allowing use of the enter key to go to the next square.