def get_key_label_from_keycode(self, keycode, extra_info = False):
        
        label = None
        for mask in reversed(sorted(self._key_patterns.keys())):
            masked_keycode = keycode & mask
            if masked_keycode in self._key_patterns[mask]:
                label = self._key_patterns[mask][masked_keycode]
                break
        
        if extra_info:
            return label, [keycode & mask for mask in reversed(sorted(self._key_patterns.keys()))]
        else:
            return label
Get tag using keycode, if no match, returns None.
dataset/ETHPy150Open yosinski/deep-visualization-toolbox/bindings.py/Bindings.get_key_label_from_keycode