Prevented key events being handled by browser

If one or more key event handlers are assigned via the engine then the
default handlers will not be triggered.