parameters: (self, event)
docstring: Override of QDockWidget::keyPressEvent. This method forward some key
          press event to some relevant actions of the contained widgets.
  
          Args:
              event (QKeyEvent): the key press event
docstring_summary: Override of QDockWidget::keyPressEvent. This method forward some key
          press event to some relevant actions of the contained widgets.
docstring_tokens: Override of QDockWidget :: keyPressEvent . This method forward some key press event to some relevant actions of the contained widgets .
function: def keyPressEvent(self, event):
          """
          Override of QDockWidget::keyPressEvent. This method forward some key
          press event to some relevant actions of the contained widgets.
  
          Args:
              event (QKeyEvent): the key press event
          """
          if event.key() == Qt.Key_Left:
              self.spectrumSlider.keyPressEvent(event)
          elif event.key() == Qt.Key_Right:
              self.spectrumSlider.keyPressEvent(event)
          elif event.key() == Qt.Key_Space:
              self.holdButton.click()
function_tokens: def keyPressEvent ( self , event ) : if event . key ( ) == Qt . Key_Left : self . spectrumSlider . keyPressEvent ( event ) elif event . key ( ) == Qt . Key_Right : self . spectrumSlider . keyPressEvent ( event ) elif event . key ( ) == Qt . Key_Space : self . holdButton . click ( )