fixing what to do when enter is clicked.