'Qt Override.'

def keyPressEvent(self, event):

    key = event.key()
    if (key in [Qt.Key_Enter, Qt.Key_Return]):
        self.show_editor()
    elif (key in [Qt.Key_Tab]):
        self.finder.setFocus()
    elif (key in [Qt.Key_Backtab]):
        self.parent().reset_btn.setFocus()
    elif (key in [Qt.Key_Up, Qt.Key_Down, Qt.Key_Left, Qt.Key_Right]):
        super(ShortcutsTable, self).keyPressEvent(event)
    elif (key not in [Qt.Key_Escape, Qt.Key_Space]):
        text = event.text()
        if text:
            if (re.search(VALID_FINDER_CHARS, text) is not None):
                self.finder.setFocus()
                self.finder.set_text(text)
    elif (key in [Qt.Key_Escape]):
        self.finder.keyPressEvent(event)
