'Qt override.'

def keyReleaseEvent(self, e):

    self.npressed -= 1
    if (self.npressed <= 0):
        key = e.key()
        if ((len(self.keys) == 1) and (key == Qt.Key_Tab)):
            self.toggle_state()
            return
        if ((len(self.keys) == 1) and (key == Qt.Key_Escape)):
            self.set_sequence('')
            self.label_warning.setText(_('Please    introduce    a    different    shortcut'))
        if ((len(self.keys) == 1) and (key in [Qt.Key_Return, Qt.Key_Enter])):
            self.toggle_state()
            return
        if (not self.edit_state):
            self.nonedit_keyrelease(e)
        else:
            debug_print('keys:    {}'.format(self.keys))
            if (self.keys and (key != Qt.Key_Escape)):
                self.validate_sequence()
            self.keys = set()
            self.key_modifiers = set()
            self.key_non_modifiers = list()
            self.key_text = list()
            self.npressed = 0
