Adding in a small animation event at the press of a button?

I want to create a small event that will play a quick animation, in which the player character will turn and pet the dog (the second actor in the party). However, I'm really not sure how to do that. I've never added in an animation like this, so I'd be grateful if someone could help me out! Screenshots would be super helpful as well.

Original thread: https://forums.rpgmakerweb.com/threads/adding-in-a-small-animation-event-at-the-press-of-a-button.135240/