title: Trigger Submit button with Enter Key React
body: <p>I would like to press the Enter Key and send a message. I try this:</p>
  
  <p>But there is an error.</p>
  
  <pre><code>&lt;input type="text" className="form-control input-sm chat_input" placeholder="Write your message here..."
                          onChange={this.handleTextChange} value={this.state.newMessage}
                      /&gt;
  &lt;span className="input-group-btn"&gt;
  &lt;input type="submit" value="Send" className="btn btn-primary btn-sm" onSubmit={this.handleSendMessage}                       
                      /&gt;&lt;/span&gt;
  </code></pre>
  
  <p>And I want to manage my function:</p>
  
  <pre><code>handleSendMessage = e =&gt; {}
  </code></pre>
  
  <p>I already try OnKeyPressed but I can't call my functions there.
  Thank you.</p>
  
  <p>I prefer a solution without jquery</p>