It's possible to call functions from the pygame.key and pygame.mouse module to receive the state of the key and mouse. However, it's not the recommended way to process events in pygame since there are some flaws with it:
You'll receive the states when the function is called, which means you mig...