Quick and rough blueprint of FPS to stay on ground

So I’ve made a player controller and added pitch and yaw input, but the controller lifts off the ground when you face upwards… How to keep it on the ground?

can you provide more information or show your blueprint? have you verified when you start your level, that your game mode and custom controller / pawn are specified?

Yes I have set the custom game mode and everything. I’ve just added an inputaxis to the pitch and yaw.