Switch my REPL 'shell' to track a full state instead of just the current buffer string. Add a map for the state of all the keys as a first step toward dealing with key-chords.