How to rotate first person camera with key

This will be on a script attached to the camera which is connected to the standard first person script. Standard rotate will not work and I dont fully understand euler angles. Essentially using a key to do what the mouse does in terms moving the camera. I tried this but it does not seem to do anything useful.

image

       this.entity.rotate(0, 0 + (dt * 10), 0);

if your camera wont rotate, I would assume first person script is setting rotation on each frame, so you have to do an exception to it once you press the key

I tried that, but it just instantly snaps the camera at an angle, and even if it did continue to rotate, the camera instantly snaps back to what it was before the key was pressed, so it doesnt really alter the cameras angle permanently