Constant
app
: AppScopeThe app scope for creating global events that won't be automatically cancelled when the scene is changed.
app.onKeyPress("f", () => {
debug.log("i run in every scene from now on");
});
// will NOT cancel the event
go("someScene");