Mouse look help

Can anyone give me some advice on capping a mouse look on x and y? Or is it x and z? I have been trying for a while with no luck. can someone help plz?

http://www.tutorialsforblender3d.com/Game_Engine/MouseLook/MouseLook_First_1.html take a look