pub fn add_to_commands<B: 'static + Backend>( commands: &mut HashMap<KeyCode, WindowCommand<B>>, char_array: &Vec<char>, cmd: Box<dyn Fn(char) -> Box<dyn Fn(&mut State) -> Option<Window<B>>>>, )