Fix enter key detection