Mouse movement not working in Standalone but working fine in Editor

I am creating a Multiplayer Shooter game. In editor when I play game, mouse movement works perfectly. I can mouse my mouse and see the environment. But when I launch the game, then my mouse movement is not working. To look around, I have to click mouse button and while holding it I can look around.
Can anyone help me.