pub fn handle_input( terminal: &mut Terminal<CrosstermBackend<Stdout>>, state: &mut UIState, key: KeyEvent, ) -> Result<bool>