title: How can I send keyboard commands (hold,release,simultanous) with a python script?
body: <p>I want to send virtually the command like this:</p>
  
  <pre><code>when keypress=="a"                   #if entered key is "a"
      send {ALT+TAB}                   # send ALT and TAB simultaneously
      sleep(2)                         #wait for 2 sec
      send {"I love my Country",0.1}   #send all strings at 0.1 sec wait
      key_down("BACKSPACE",1)          #hold down backspace key for 1 sec
      send{ALT+F4}                     #send ALT and F4 simultaneously
  </code></pre>
  
  <p>For all, or a particular application, also opengl games as well.</p>
  
  <p>I tried SendKeys.py but there is no simultaneously input function and no key_down method for sending holding down a key command. All advice will be greatly appreciated.</p>