Dispatching keyboard events

Can this be done in AS2?

I have a key.addlistener setup to listen to key events.

What I want to be able to do is to dispatch key events by for example a mouse click or just on load.

Anyone know if it is possible? I’ve tried a lot of possible solutions such as dispatchEvent with type as “onKeyDown” and “keyDown” etc… but key listener simply do not treat it as a keyboard event.

var eventObj = new Object();
eventObj.type = "keyDown";
eventObj.code = 13;
eventObj.ascii = 'e';