code: def eventFilter(self, receiver, event):
      if event.type() == QtCore.QEvent.Type.KeyPress:
          self.window.keyPressEvent(event)
          return True
      else:
          return super().eventFilter(receiver, event)
  
imports: import os
  from pathlib import Path
  import shutil
  import sys
  from matplotlib.backends.qt_compat import QtCore, QtGui, QtWidgets
  from matplotlib.backends.qt_compat import _exec
label_desc: Use image node_id 2 for calling the EventFilter obj's underlying member method code with example usage: obj.eventFilter(receiver, event) and returns: True, super