OnEnter event for the input field