fix animation loop frequency, call preventDefaults on key events