REPL message history navigator using the arrow keys implemented