Changed the event structure to use capture and dispatch new keyboard events.