Added sprite movement and smoothed keyboard input