def keyReleaseEvent(self, event):
        # Ignore auto-repeats
        if event.isAutoRepeat():
            return

        # Clear the highlight list if you just released the space bar
        if event.key() == QtCore.Qt.Key_Space:
            self.scene().setHighlightNodes([], intensities=None)
Stifle auto-repeats and handle letting go of the space bar.
dataset/ETHPy150Open andrew-gardner/dependsworkflow/depends/depends_graphics_widgets.py/GraphicsViewWidget.keyReleaseEvent