[Refactor] Reverting part of previous commit's code.

The Quora issue of keyboard shortcuts not working for some links, works better with createEvent than CustomEvent. Going back to using createEvent for now, although it will be deprecated soon. It also makes sense because CustomEvent constructor is not implemented by all browsers yet.