Improves keyboard event handling experience in hostile browser environment