To deal with hardcoded or configurable key events in a cross-platform terminal application written in Rust, you'll probably need to determine what keybindings you can really use, use convenient hardcoded keybindings, and read keybindings from a configuration file