Fix tests.
Refactor and update do vty 5.1.
Refactor Keymap types to allow stateful keymaps.
Some tests for cursor movements.