Other Similiarites to GameMaker

this won't make much sense now, but if you are familiar with common GameMaker events you will probably know of these:

Here they are in pygame and works same for mouse input too: