Methods for processing keyboard input in character, line and multiline modes
