change way animations keys are handled (thanks KittyCat!)
bugfix