IE doesn't work well with keypress