Set the animation according to a key pressed - LINK
Please prevent yourself from 15 minutes bump, as mentioned by other members, it's pretty rude and probably will bring up a delayed answer.
Especially since basic questions are covered by the beginner's tutorials and most of the "most advanced" questions are answered in the how do I FAQ.
If you don't get your answer in 15 minutes, please don't get impatient. Wait a bit and be sure to search by yourself.
Support is provided by the members/users of Construct 2. And posting on a Sunday morning, you can't decently expect an answer in the second.
Be sure to check the links in my signature too, it can help you getting started with C2.