now handles user pressing enter instead of a letter