Fix mouse input lag while keyboard input - old projects should update th...

...eir main.cpp according to this changes!

As wished in the [forum](http://polycode.org/forum/viewtopic.php?p=3514#p3514)