fn handle_prompt_input_key_event( input: &mut Option<String>, event: KeyEvent, is_input_char: impl Fn(&str, char) -> bool, ) -> Option<String>