title: Submit a form using Enter key with "@material-ui/core/Button" in react.js
body: <p>Here is my form in render method which is for user sign-in.</p>
  <pre><code>&lt;form onSubmit={this.handleSubmit}&gt;
    &lt;Avatar className={classes.avatar}&gt;
      &lt;LockOutlinedIcon /&gt;
    &lt;/Avatar&gt;
    &lt;Typography component=&quot;h1&quot; variant=&quot;h5&quot;&gt;
      Sign in
    &lt;/Typography&gt;
  
    &lt;TextField variant=&quot;outlined&quot; margin=&quot;normal&quot; fullWidth id=&quot;email&quot;
      label=&quot;Email Address&quot; name=&quot;email&quot; onChange={this.handleEmailChange}
    /&gt;
    &lt;TextField variant=&quot;outlined&quot; margin=&quot;normal&quot; fullWidth
      name=&quot;password&quot; onChange={this.handlePasswordChange}
    /&gt;
    {loginError &amp;&amp; (
      &lt;Typography component=&quot;p&quot; className={classes.errorText}&gt;
        Incorrect email or password.
      &lt;/Typography&gt;
    )}
  
    &lt;Button type=&quot;button&quot; fullWidth variant=&quot;contained&quot; color=&quot;primary&quot;
      className={classes.submit} onClick={this.handleSubmit}
    &gt;
      Sign In
    &lt;/Button&gt;
  &lt;/form&gt;
  </code></pre>
  <p>And the following is my handle submit method.</p>
  <pre><code>handleSubmit = () =&gt; {
    const { dispatch } = this.props;
    const { email, password } = this.state;
    dispatch(loginUser(email, password));
  };
  </code></pre>
  <p>How can I submit the form by pressing the <code>Enter</code> key? I am using the standard Material UI <code>Button</code> component.</p>