code: def is_pressed(self, button):
          
          if button not in set((SELECT, RIGHT, DOWN, UP, LEFT)):
              raise ValueError('Unknown button, must be SELECT, RIGHT, DOWN, UP, or LEFT.')
          return self._mcp.input(button) == GPIO.LOW
docs: Return True if the provided button is pressed, False otherwise.