title: Simulate keystroke in Linux with Python
body: <p>How can I simulate a keystroke in python? I also want to press multiple keys simultaneously.</p>
  
  <p>Something like:</p>
  
  <pre><code>keystroke('CTRL+F4')
  </code></pre>
  
  <p>or</p>
  
  <pre><code>keystroke('Shift+A')
  </code></pre>