Animated Cat Ears

Hey I was wondering if anyone could help me make a pair of cat ears that I can program to move around (such has flatten down and twitch and perk up)