fix keyup test for IE 7

IE 7 has no Event object.