code: def keyPressEvent(self, event):
          
          key = event.key()
          if key in [Qt.Key_Up]:
              self._parent.previous_row()
          elif key in [Qt.Key_Down]:
              self._parent.next_row()
          elif key in [Qt.Key_Enter, Qt.Key_Return]:
              self._parent.show_editor()
          else:
              super(ShortcutFinder, self).keyPressEvent(event)
docs: Qt Override.