Attempt to fix movement of the first/last keyframes, still in a bug in their gui position, the curve seems ok. Also don't show tangents if the keyframe is KEYFRAME_CONSTANT