Disabling all special keys in Chrome / jsoo (preferably works well with bonsai)

I’m building a webapp in ocaml/jsoo/bonsai. I want to disable all special keys (F1, ctrl-+/- for zoom, etc …).

There are many arguments why this is a bad idea. I don’t want to get into that debate; in short, I’m building a WebGL based “app”, and not a “html document”.

Is there a nice way to do this? Preferably something that interacts well with bonsai / virtual_dom ?

I’m thinking of just calling preventDefault / stopPropagation on the bubble phase on the global window object; but I’m open to other suggestions.