To create animation, you can also "sketch" a motion path.
With the Motion Sketch panel open, select a layer in the Composition or Timeline panel.
Click Start Capture and sketch a motion path in the Composition panel.
As you draw the motion path, After Effects generates position keyframes, recording the speed at which you move.