now passes framerate though to animation
removed keysDown property and added function to return calculated instead