title: Pressing enter to submit form in react-testing-library does not work
body: <h3>Description:</h3>
  
  <p>I am trying to test that a form submits when the user presses the "Enter" key. I have a passing test for when pressing the <code>Submit</code> button, but I also want to be sure the form submits with the keyboard (convenience and a11y).</p>
  
  <h3>Code:</h3>
  
  <pre class="lang-js prettyprint-override"><code>test("should submit when pressing enter", () =&gt; {
    const handleSubmit = jest.fn();
    const { getByLabelText } = render(&lt;App handleSubmit={handleSubmit} /&gt;);
    const input = getByLabelText("Name:");
  
    fireEvent.change(input, { target: { value: "abc" } });
    fireEvent.keyPress(input, { key: "Enter", code: 13, charCode: 13 });
  
    expect(handleSubmit).toHaveBeenCalled();
  });
  </code></pre>
  
  <p>Here is a <a href="https://codesandbox.io/s/gifted-jackson-pdd5h" rel="noreferrer">CodeSandbox</a> with the minimal amount of code needed.</p>