Character animation

I got a problem. I made a character in Maya, animated it as well. I have only one animation that contains all the states (idle walk etc.) I imported the character into unity and I divided frames and named them as the states in import settings. But I can’t trigger them from anywhere. I heard about the crossfade command, but whether it is applicable or not I have no idea. Can’t find any reference. How can I play my walk cycle by pushing “up” key, and when release, play “idle”? But all the states are parts of one clip!

This tutorial will help you to make your Mecanim