Capture and replay some jQuery events

Supported events:
click mousedown mouseup keydown keyup keypress change focus blur

Events on the `window` object are not supported yet.