Training animals (and people) to do what you wish them to do is a vanishing art. However, there is a training method that is gaining popularity for teaching animals, ranging from rodents to whales, to perform certain behaviors on command. This training method is clicker training. Here is one example of clicker training with a common ordinary pet mouse, where it has been trained to follow an obstacle course that is truly epic in its size.
How the heck did this mouse keeper train this beast to perform like this? In short, he used clicker training. When you watch this video, you'll see one of the tricks used in clicker training, a target stick that animals are trained to go to:
And more on mouse agility training: