code: def keyPressEvent(self, event):
          
          if event.key() == Qt.Key_Down:
              self.select_row(1)
          elif event.key() == Qt.Key_Up:
              self.select_row(-1)
docs: Reimplement Qt method to allow cyclic behavior.