added window object to prefix onkeydown and onkeyup