Add Movement Input Unexpectedly adds rotation to Character Mesh

Hey There! I’m new to Unreal Engine. I’m trying to make a climbing system, I’ve succeeded in making the character go up and down on a large BSP box.

The problem is: When Going up some of the tower’s faces, the character changes his orientation unexpectedly after adding z-axis movement with an AddMovementInput node (The last node). I’ve debugged the Blueprint, and removing this last node ends up in the character going up the z-axis after jumping, and staying at a fixed location in mid-air, with no orientation change. Since he turns, he falls, because I’m casting a ray to determine if he’s still climbing

Here’s a screenshot of the Blueprint and of working and failing scenarios on the climbable tower.

Blueprint:

Successful Climb:

Failed Climb on Another Tower’s Face: