code: def keyPressEvent(self, event):
          
  
          processEvent = True
          for accelerator in self.__pre_input_accelerators:
              processEvent *= accelerator(self, event)
  
          if not processEvent:
              return
  
          Basic_QPlainTextEdit.keyPressEvent(self, event)
  
          for accelerator in self.__post_input_accelerators:
              accelerator(self, event)
docs: Reimplements the :meth:`Basic_QPlainTextEdit.keyPressEvent` method.
  
          :param event: Event.
          :type event: QEvent