def declare_possible_actions(self): from pygame.locals import K_SPACE actions = MovingAvatar.declare_possible_actions(self) actions["SPACE"] = K_SPACE return actions