No inverted mouselook?

hi, i got a question, a have seen that in many space shoother games, you can rotate freely without the mouselook get inverted, is there a way to this?

Most likely by using all local rotations, typically mouse look scripts for blender use a global z rotation and local y rotation.