#NEWLINE# def _handle_player_events( self ) : #NEWLINE# #INDENT# self . is_climbing = False #NEWLINE# for event in pygame . event . get ( ) : #NEWLINE# #INDENT# if ( key . type == pygame . QUIT ) : #NEWLINE# #INDENT# pygame . quit ( ) #NEWLINE# sys . exit ( ) #NEWLINE# #UNINDENT# if ( event . type == pygame . KEYDOWN ) : #NEWLINE# #INDENT# key = event . key #NEWLINE# if ( key == self . actions [ 'up' ] ) : #NEWLINE# #INDENT# self . is_climbing = True