How to call submit on an input form?

You should still use <form> tags and put the submit action there. That’ll take care of hitting [Enter] but the leaving focus would need a different solution.