You should disable mouse input before starting the flight and enable it on flight completion. Seethe other examples.