Invoke the ESC key to clear input fields with pure javascript