How to lock camera angle on key press?

Hello,

How can i disable camera rotating when im holding the key?
Im using the FPC prefab

Try deactivating a Mouse Look scripts that are attached to the FPC and camera.