def keyPressEvent(self, event):
        # This widget will never process auto-repeating keypresses so ignore 'em all
        if event.isAutoRepeat():
            return
        
        # Frame selected/all items
        if event.key() == QtCore.Qt.Key_F:
            itemList = list()
            if self.scene().selectedItems():
                itemList = self.scene().selectedItems()
            else:
                itemList = self.scene().items()
            bounds = QtCore.QRectF()
            for item in itemList:
                bounds |= item.sceneBoundingRect()
            self.frameBounds(bounds)
            
        # Highlight each node upstream that affects the selected node
        elif event.key() == QtCore.Qt.Key_Space:
            sel = self.scene().selectedItems()
            if len(sel) != 1:
                return
            self.scene().setCascadingHighlightNodesFromOrderedDependencies(sel[0].dagNode)
Stifles autorepeat and handles a few shortcut keys that aren't 
dataset/ETHPy150Open andrew-gardner/dependsworkflow/depends/depends_graphics_widgets.py/GraphicsViewWidget.keyPressEvent