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