Compatibility changes so that the tests pass in IE

One of the custom event tests for left and right arrow occasionally fails in IE, for reasons that I cannot deduce. Since this is a demo, I’m going to live with it rather than dig into the issue.