Added undefined to known_terminal_button_e.
Implemented trie, unit tests.