title: emulate pressing key combination and send it to running program
body: <p>maybe I haven't searched hard enough, but I do not seem to find the answer for my situation.</p>
  
  <p>I have program invoked via command1</p>
  
  <pre><code>$command1
  CONSOLE(provide key combination):
  ^Ecd
  [line down]
  ^Eco
  [up]
  ^Ec.
  exit
  </code></pre>
  
  <p>With above program, I need to press ctrl+e cd, ctrl+e co and ctrl+e c. key combinations to perform what I need and then exit.</p>
  
  <p>I need to automate above task so it's done by some script in the background:</p>
  
  <pre><code>white true do:
  command1 | somecommandthatsends ctrl+e cd ctrl+e ctrl+e c.
  sleep 9999999
  done
  </code></pre>
  
  <p>Can that be achieved somehow?</p>