def _handle_input(self, key):
    if ord(key) in range(65, 91):
      # print('Capital =', True)
      self._capitalize(key)
    elif key in KeyConsts.special_map.keys():
      normalized_key = KeyConsts.special_map[key]
      self._capitalize(normalized_key)
    else:
      self.key_press(key)
      self.key_release(key)
dataset/ETHPy150Open chriskiehl/pyrobot/pyrobot.py/Robot._handle_input/original