In flight mode, input z, the character will rotate

qp_movementC->bOrientRotationToMovement = true;

qp_movementC->SetMovementMode(MOVE_Flying);

AddMovementInput(FVector(0,0,1), value);

My character will automatically turn to a strange direction when rising or falling. How to prevent the character from rotating