Implement most of pygame.event.