Handled form submission on enter.