Mouse look similar to space engineers

In space engineers if you rotate the camera you can still look up, down, left and right with no problem. In my project i can’t seem to replicate that. Any help on how could i do it?

Some gifs to understand what i mean:

My Character blueprint:


On mouse X add yaw, on mouse Y pitch, in class settings set enable pitch and roll, on camera turn off use pawn rotation