Added velocity, acceleration, and multiple key presses.