Correct a speed issue with the event demo.

The fact that only one event is treated at each step of the "loop" function can create a real latency (up to 2 seconds if you flood the mouse and keyboard). May be better to manage all available events at the same time.