pc.EVENT_KEYDOWN firing continously

Hey using

this.app.keyboard.on(pc.EVENT_KEYDOWN, this.onKeyDown, this);

seems to suddenly firing continously when holding a key down while I’m pretty sure it was (and should) only firing once before.

this.app.keyboard.wasPressed([...])

in the update loop still works as a workaround though.

Okay, just noticed that the browser implementation

document.addEventListener('keydown', ... );

is also firing continously, so I guess it is intended?

Yes, that’s expected. You can either use a switch that resets on keyup, so you only fire your code once, or use keyup only if that works for you.