Object spinning when key is not pressed

Hey there @mmartin139! Welcome to the community! So what’s happening is that the rotating movement component has it’s own constant rotation rate. Your script takes the object and immediately sets it’s relative rotation to -180, and sets it back to 0 on release.

This is not interacting with your rotation component at all. Now take a look into the details panel of the rotation component, in it’s Z rotation rate it has a 180 value, which means it’s going to rotate in the Z every single tick on it’s own. So first set that to 0, then you will want to adjust your script to reference the movement component then set it’s rotation rate to 180 instead of setting the relative rotation.

Edit: Example
image

Launching unreal now to give you an example!