Using Keydown instead of Keypress to provide safari support in polyfill