#NEWLINE# def on_key_press( self , k , m ) : #NEWLINE# #INDENT# if ( ( not self . hi_score ) and ( ( k == key . ENTER ) or ( k == key . ESCAPE ) ) ) : #NEWLINE# #INDENT# director . pop ( ) #NEWLINE# return True #NEWLINE# #UNINDENT# if self . hi_score : #NEWLINE# #INDENT# if ( k == key . BACKSPACE ) : #NEWLINE# #INDENT# self . name . element . text = k . name . element . text [ 0 : ( - 1 ) ] #NEWLINE# return True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( k == key . ENTER ) : #NEWLINE# #INDENT# hiscore . hiscore . add ( status . status . score , self . name . element . text , status . status . level_idx ) #NEWLINE# director . pop ( ) #NEWLINE# return True #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return False