A keyframe holds a setting at one moment. With two or more, the setting changes smoothly from one to the next: a picture that slowly grows, a corner picture that slides in, or music that gets quieter while someone speaks.
Select the clip, move the playhead to where the change starts, and press the diamond beside Volume, Size, Across, Down or Opacity. Then move the playhead to where it ends and change that setting: a second keyframe is added there. The diamond is filled when the playhead is on a keyframe; press it again to remove that keyframe.
Keyframes show as small diamonds along the clip on the timeline. Before and After in the Keyframes section jump between them, and Remove all takes them away, keeping each setting as it is at the playhead.
Effects have diamonds too, beside every setting in the Effects : a blur that clears, a crop that opens up, a vignette that closes in.
Curves: go to a keyframe with Before or After, and the Keyframes section shows how every setting with a key there moves on to the next one. Smooth eases out and in (the usual), Even changes at one steady rate, Ease in starts slowly, Ease out ends slowly, and Hold keeps the value until the next keyframe, then jumps. Custom gives the curve two handles to drag (or focus one and use the arrow keys), as in CSS: a steep part is a fast change, a flat part a slow one, and a handle above the box overshoots and settles back.
Keyframes stay on the same moment of the video when you trim, split or move the clip.