private Object read() throws IOException, StopInputException {
String line = readLine(true);
if (line == null || line.equals("exit")) {
throw new StopInputException();
} else if (line.startsWith("%")) {
return handleShortcuts(line);
} else if (line.startsWith("?")) {
return handleHelp(line);
} else if (line.trim().equals("")) {