Fix problem with the enter key pressed