code: def input(self, input, song):
          
          try:
              cmd = getattr(self, self.CMD_MAP[input][1])
          except (IndexError, KeyError):
              return self.screen.print_error(
                  "Invalid command {!r}!".format(input))
  
          cmd(song)
docs: Input callback, handles key presses