Is there a way of reading one single character from the user input? For instance, they press one key at the terminal and it is returned (sort of like getch()).
getch()
Try this with pygame:
import pygame pygame.init() // eliminate error, pygame.error: video system not initialized keys = pygame.key.get_pressed() if keys[pygame.K_SPACE]: d = "space key" print "You pressed the", d, "."