Form approach
As scoota269 says, you should use onSubmit instead, cause pressing enter on a textbox will most likey trigger a form submit (if inside a form)
Textbox approach
If you want to have an event on the input-field then you need to make sure your handle() will return false, otherwise the form will get submitted.