input box sends event on enter