Keys
Keys store a value at a given time in animation. This time is measured in frames. Most animations have 24 frames in a second, so, if at frame 1 there's a key frame that says the value is 0, then on frame 24 there's a key frame with the value of 5. In the time-span of one second, that value changes from 1 to 5. The way this value changes is defined by tangents. More on that later.Set-up
We're going to create a basic animation using a sphere as the test model.Step one - Go to create>polygonal primitives>sphere.
Step two - Go to the animation menu set.
Step three - Go to the timeline and set the animation range to 1 and 20. This allows for 20 frames of animation.
Step four - Go to window>settings/preferences>preferences. Go to timeline and set the Playback Speed to real time(24 fps). Close the preferences.
Step five - Select your sphere and go to animate>set key. Now we've set our first key frame. This key frame has all its values at 0 because the sphere hasn't been moved.
Step six - Go to frame 10.
With the model still selected, go to window>attributes editor. Go to the tab pSphere1. This tab contains all the transformation information.
The attributes in red are attributes that have key frames assigned to them. Select the center translate attribute; this is the Y axis (up). Set it to 5.
Go to frame 20. Once again, set the Y translate attribute to 2. Now set another key.
Editing Key Frames
So far we've got a simple animation. Now we're going to change the key frames in the graph editor.Step one - Go to window>animation editors>graph editor.
Step two - Select your sphere and you can see its key frames in the graph editor.
We only need to work on the Y translate axis right now, so select it on the left side. This will allow us to only display the selected keys.
Moving Keys
The fundamentals of working with an animation is being able to change the key frame's position on a graph.Step one - Click on the key frame at frame 10.
Step two - Go to edit>transform tools>move key tool. Middle mouse button click on the key frame. Now hold and drag it sideways to frame 13.
Tangents
Tangents allow you to change the way values are processed between key frames.By default, these values have a smooth interpolation between the key frames. For more on interpolation, read this wiki page.
link
This interpolation can be changed. Select the key frame that we've been working with and go to tangents>linear.
Notice how the curves change. Also, if you play the animation, notice how the sphere moves differently.
You can undo that. Now that we're back to the default tangent, select the key frame, go to the move key tool and click on one of the tangent handles.
Key Frames Are Nodes
Key frames are stored in nodes. These nodes add additional options for the key frames.Step one - If it's not already selected, select the sphere.
Step two - Re-open the attributes editor if it was closed.
Step three - Go to the tab pSphere.
Right click on the Y translate axis value and go to pSphere1_translateY.output...
Conclusion
There are many different options, tools, and features in Maya to make an animation using key frames. This covers the basics of how key frames work to get you started.Good luck.