Unable to catch input without stoping html inputs

I’m trying to allow keyboard input into a playcanvas app without hooking all the input that is supposed to get passed to normal html elements.

I looked at the first person camera example, but it looks like this doesn’t work either. https://playcanvas.github.io/#camera/first_person/index.html

So far I can get the input to work by doing keyboard: new pc.Keyboard(window), but this hooks ALL input and I have to tab around to get to the text input box, and I can only type, not click or do anything else.

How do I do this?

after further testing it looks like mouse events aren’t passing properly.