I am sure the bird was trained by using clicker training. It's positive reinforcement, usually a food treat following the trick. Parrots are essentially wild animals and are really not all that domesticated, despite our best efforts. Clicker training is one way to encourage bonding and to stimulate the bird. If anyone has a bird out there, I highly encourage it. Birds are so intelligent and are quite easy to train to do tricks. I have a parrot who has learned several tricks through clicker training. Here's a link to my bird's video.
http://www.youtube.com/watch?v=8YmpcYZy6qY