Enable mouse input

Ok so here is the answer for my own question.

All you need to do is to add “mouse Y and X” but it is important to unchecked “Consume Input”

Bonus answer if you want to limit rotation values use clamp node. For correct values use print node connected to event tick to print out yaw/pitch values per frame. Then check on what range you get the proper result.