2d side scroller

how do you swich animations as in set a flipbook to a button such as f and on pressing f the character would do the animation in your flipbook