pub fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<()>
Expand description

Handles the key events and updates the state of App.