Made events for key presses/releases.