Using Ctrl+Z when working in Keyframe

I know that pressing CTRL + Z in the keyframe does not undo the keyframe operations.
But. As a habit, I press CTRL + Z to undo the operation. In this case, the last operation on the timeline is undone.
I think the keyboard shortcut CTRL + Z should not do anything while working in Keyframe.

It does not know you are working in Keyframes. Shotcut is mode-less in this regard, and you can switch to any panel at any time. Rather, undo support must be added to fillers and then to keyframes, which are on the road map. If you want it to track that your last action was related to Keyframes and ignore undo, then people will report it as a bug that undo is not working.