keyPress bugfix