Fix the use of enter to search