Loading a flash animation

I want to load a flash animation in my webpage when a specific key is pressed.
e.g: If i press “A”, the page should display animation 1.
If i press “B”, the page should display animation 2 and likewise.

How can this be done?