def post_event(self):
assert len(self.events)><NUM_LIT:0>, "<STR_LIT>"<EOL>if self.events[-<NUM_LIT:1>].name == '<STR_LIT>':<EOL><INDENT>self.key_event()<EOL><DEDENT>else:<EOL><INDENT>self.mouse_event()<EOL><DEDENT>
This will be called to process events