title: Is there a way to programmatically press keyboard keys?
body: <p>Client requires to programmatically press Keyboard keys like "C", "Ctrl", "Shift", "5", etc.</p>
  
  <p>I have checked some APIs but only handing of key presses are available.
  Example :</p>
  
  <pre><code>.keypress()
  </code></pre>
  
  <p>Are there available functions which can mimic this behavior?</p>
  
  <p>[Updated Code]</p>
  
  <pre><code>$("#input").focus();
  window.crossBrowser_initKeyboardEvent("keypress", {"key": 1, "char": "!", shiftKey: true});
  </code></pre>
  
  <p>My goal in the updated code is to focus a textfield and trigger keypresss such that the character I want to show is shown ion the textfield. But, the above code is not working also.</p>