Adding isKeyPressed