What is the difference between these keyframes? (Animation Editor)

I’m new to animating and found some reference animations for a gun viewport. I’m wondering why there are different colors of keyframes throughout the animation, and what they mean? I can’t find how to set them or why they are there (or what they do!). Any insights appreciated.

Those are keyframes that have a different easing style (default is linear)

You can right click on the keyframe to change its easing style

Different colors on keyframes represent the easing style they use. Default white means linear and orange as shown in the image represents cubic interpolation.