Adds key up/down (limited) command history to e.g. the java debug console