var Input = React.createClass({ render: function () { return <input type="text" onKeyDown={this._handleKeyDown} />; }, _handleKeyDown: function(e) { if (e.key === 'Enter') { console.log('do validate'); } } });