allow option for not submitting when pressing enter