title: onKeyPress event not called in ReactJS render()
body: <p>I' trying to listen for keyboard events in ReactJS like this: </p>
  
  <pre><code>class Dungeon extends React.Component {
  
    onKeyPress(e){
      console.log(e.charCode); 
    }
  
    render(){
      var rows = [];
      for (var i=0; i &lt; boardHeight; i++) {
          rows.push(&lt;DungeonRow rowId={i} /&gt;);
      }
  
      return (
        &lt;table onKeyPress={this.onKeyPress}&gt;
          {rows}
        &lt;/table&gt;
      ); 
    }
  }
  </code></pre>
  
  <p>But the <code>onKeyPress</code> is not called when I click on the keyboard. What went wrong? </p>