Quiet down deprecation warnings

Deprecation warnings were getting chatty, so this removes deprecated `keyboardEvent.keyLocation` (not in use anyway) and only copies `returnValue` if `preventDefault` is not available.