Fixed an issue with the "enter" key (see #2)