more work on animations

It will now check to see if the key given exists before setting the
animation