Javascript Simulate Keypress Without Jquery