added enter-handling on input