Make the camera tilt down

Hello, i have a camera and i want make it tilt down when i press a key and it work, but when the key is pressed the mouse don’t move so don’t allow me to click. Here is the code

if (context.keyboard.isPressed(pc.input.KEY_G) && this.type===3){
                var a=this.entity.getLocalEulerAngles().x;

That seems to be more of an OS/browser limitation as I’ve just tried doing it just now in this forum.

You may want to change it to a toggle instead of having to hold the button down.

Uhm yes thought the same too, thanks @yaustar , will have to study the camera.js and see how to do that.