def METHOD_NAME(self, size, key):
    cmd = self._command_map[key]
    if cmd is urwid.ACTIVATE:
        new_value = not self.current_value
        _change_setting(self.name, new_value)
    else:
        return key