import pygame from pygame.locals import* import sys pygame.init display = pygame.display.set_mode((300, 300)) while True : for event in pygame.event.get(): if event.type == pygame.KEYDOWN : fireball.fire() music_manager.playsound(fsound, 0.3)