Mouselook function stops working after clicking mouse button

I just made a new project using 3d person shooter default profile. All I added was the nodes below and the problem can be replicated. Camera rotation works when first starting but if i click, camera rotation no longer works by just moving mouse.