UNREAL UE 4 - How to stabilize rotation parallel to the floor?

Hi, i want my flying ship to stabilize rotation before landing, if my ship is looking to the sky, after pressing X button, it has to smoothly stabilize its rotation parallel to the floor but still looking forward, how can i do this "smoot"h transition?

Please add BP images, thanks!