#NEWLINE# def keyPressEvent( self , event ) : #NEWLINE# #INDENT# ' Handle keyboard keys being pressed.\n        ' #NEWLINE# if ( event . key ( ) not in ( QtCore . Qt . Key_Control , QtCore . Qt . Key_Shift ) ) : #NEWLINE# #INDENT# self . editor . key = event