code: def set_key(self, key, modifiers: typing.List[Key]=None):
          
          if modifiers is None:
              modifiers = []  # type: typing.List[Key]
          if key in self.KEY_MAP:
              key = self.KEY_MAP[key]
          self._setKeyLabel(key)
          self.key = key
          self.controlButton.setChecked(Key.CONTROL in modifiers)
          self.altButton.setChecked(Key.ALT in modifiers)
          self.shiftButton.setChecked(Key.SHIFT in modifiers)
          self.superButton.setChecked(Key.SUPER in modifiers)
          self.hyperButton.setChecked(Key.HYPER in modifiers)
          self.metaButton.setChecked(Key.META in modifiers)
          self.recording_finished.emit(True)
docs: This is called when the user successfully finishes recording a key combination.