correcting for IE's lack of support for key events on 'window'