Added keyPressed, keyDown and keyUp.