pub fn handle_key_events( key_event: KeyEvent, app: &mut App<'_>, ) -> AppResult<()>
Handles the key events and updates the state of App.
App