I've read all the answers on to this questions and none of the solutions seem to work.
Also, I am getting the vibe that triggering keypress with special characters does not work at all. Can someone verify who has done this?
edit: the solution does not work. Try it in firebug on stackoverflow:
e = jQuery.Event("keydown");
e.which = 67;
$("#wmd-input").trigger(e)
wmd-input in the question input. 65 is A, so 67 must be an alpha key. No alpha key is entered into the question box.