code: def _get_key_value(self, event, event_type):
          
          if event_type == 10:
              value = 1
          elif event_type == 11:
              value = 0
          elif event_type == 12:
              value = self._get_flag_value(event)
          else:
              value = -1
          return value
docs: Get the key value.