How to Set the Actor rotation to Yaw in C++?

this I want to check in tick every frame to see if the Alt is pressed.