How the Tony-winner trained to perfect the realistic physicality needed to play Matthew Broderick's four-legged friend.