Prevent preventDefault from always being executed.

I can't find any tests for the `KeyManager`.