title: Where can I find documentation of the 'keypress' event in Node.js
body: <p>In Node.js, we can configure the <code>'readline'</code> module to emit <code>'keypress'</code> events like this:</p>
  
  <pre><code>const readline = require('readline');
  
  readline.emitKeypressEvents(process.stdin);
  
  if (process.stdin.isTTY) {
    process.stdin.setRawMode(true);
  }
  </code></pre>
  
  <p>Then, we can listen to keypress events like this (example listens to <kbd>Ctrl</kbd>+<kbd>c</kbd> ):</p>
  
  <pre><code>process.stdin.on('keypress', (str, key) =&gt; {
    if (key.ctrl &amp;&amp; key.name === 'c') {
      // do stuff
    }
  });
  </code></pre>
  
  <p>This works very well, but I can't find any documentation about the <code>'keypress'</code> event at <a href="https://nodejs.org/en/docs/" rel="noreferrer">https://nodejs.org/en/docs/</a>.</p>
  
  <p>So my question is: where is the documentation about the arguments used when my <code>'keypress'</code>-callback is called?</p>