def __updateStack(self, key):
<EOL>if key == Key.ENTER:<EOL><INDENT>key = '<STR_LIT:\n>'<EOL><DEDENT>if key == Key.TAB:<EOL><INDENT>key = '<STR_LIT:\t>'<EOL><DEDENT>if key == Key.BACKSPACE:<EOL><INDENT>if ConfigManager.SETTINGS[UNDO_USING_BACKSPACE] and self.phraseRunner.can_undo():<EOL><INDENT>self.phraseRunner.undo_expansion()<EOL><DEDENT>else:<EOL><INDENT>try:<EOL><INDENT>self.inputStack.pop()<EOL><DEDENT>except IndexError:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>return False<EOL><DEDENT>elif len(key) > <NUM_LIT:1>:<EOL><INDENT>self.inputStack.clear()<EOL>self.phraseRunner.clear_last()<EOL>return False<EOL><DEDENT>else:<EOL><INDENT>self.phraseRunner.clear_last()<EOL>self.inputStack.append(key)<EOL>return True<EOL><DEDENT>
Update the input stack in non-hotkey mode, and determine if anything
further is needed.

@return: True if further action is needed