#NEWLINE# @ CarbonEventHandler ( kEventClassKeyboard , kEventRawKeyUp ) #NEWLINE# def _on_key_up( self , next_handler , ev , data ) : #NEWLINE# #INDENT# ( symbol , modifiers ) = self . _get_symbol_and_modifiers ( ev ) #NEWLINE# if symbol : #NEWLINE# #INDENT# self . dispatch_event ( 'on_key_release' , symbol , modifiers ) #NEWLINE# #UNINDENT# carbon . CallNextEventHandler ( next_handler , ev ) #NEWLINE# return noErr