'Reimplement Qt methods'

def keyPressEvent(self, event):

    if (event.key() == Qt.Key_Delete):
        self.remove_item()
    elif (event.key() == Qt.Key_F2):
        self.rename_item()
    elif (event == QKeySequence.Copy):
        self.copy()
    elif (event == QKeySequence.Paste):
        self.paste()
    else:
        QTableView.keyPressEvent(self, event)
