You have to buy when an animal is low, and sell when they are high. Space to open and c to close shop.
Inspiration from https://scratch.mit.edu/projects/507263262/ by @MASON8857 I basically copied it but it was a cool idea.