First pass at keyboard and mouse events. They work, but probably still have bugs.

this should be MIDP.sendNativeEvent({ type: MIDP.PEN_EVENT, intParam1: 1, ... })