Added support for keyboard events to change the animal