fix enter key handling