title: sending keyboard interrupt programmatically
body: <p>An application that asks for a keyboard interrupt. How can I send for a keyboard interrupt programmatically? I need it for automation.
  Like <code>&lt;C-c&gt;</code> or <code>&lt;C-x&gt;</code></p>
  <pre class="lang-py prettyprint-override"><code>KeyboardInterrupt 
  </code></pre>