fix keyPressed