Document.captureEvents( )
see
Window.captureEvents( )