def process_user_input(self):
user_input = self.get_input()<EOL>go_to_max = ord("<STR_LIT>") if len(self.items) >= <NUM_LIT:9> else ord(str(len(self.items)))<EOL>if ord('<STR_LIT:1>') <= user_input <= go_to_max:<EOL><INDENT>self.go_to(user_input - ord('<STR_LIT:0>') - <NUM_LIT:1>)<EOL><DEDENT>elif user_input == curses.KEY_DOWN:<EOL><INDENT>self.go_down()<EOL><DEDENT>elif user_input == curses.KEY_UP:<EOL><INDENT>self.go_up()<EOL><DEDENT>elif user_input == ord("<STR_LIT:\n>"):<EOL><INDENT>self.select()<EOL><DEDENT>return user_input<EOL>
Gets the next single character and decides what to do with it