typo fixes, NaN fixes, animation, and keyboard input