You can set animation keyframes automatically each time you modify the attribute values. This process is called AutoKey.
AutoKey lets you to skip the steps of marking attributes and pressing a button or hotkey every time you want to set a keyframe. When AutoKey is on and you modify an attribute value in any way (using the tool UI, direct manipulation, or scripting) a keyframe for the modified attribute value is set at the current time, whether or not the attribute is marked for animation. The Autokey setting therefore overrides all markings for animation settings. This is also valid while playing and is usually done this way to define the initial shape of the animation.