Click the animal you want to save first. For example, if you click giraffe first, you have to get the giraffe to touch the key by using the space key to move it around. Once you touch the key, the animal is saved. Then you get to save the other animals.
I give credit to @HermioneGranger0210 for helping me with the code.