Remove Unused Keyframes?
I do believe pressing O used to run this tool in the Dope Sheet, but for consistency with the other editors O now seems to enable proportional editing. Now the 'Clean Keyframes' option resides in the Key> Clean Keyframes menu.



WARNING This will reset ALL interpolation back to the F-Curve default Interpolation.