Override native maya command

I hope to add some work on "keyframe", "setKeyframe" commands.
When they called, I need to renew my UI.
I tried to use "scriptJob", but there isn't such a event, right?
So, I think up that I have to override the commands.
But I can't find the way to adjust native command. :frowning:

How can it work?

You can not override the native command, except with mel procedue but then youll break maya.

The next best thing is to override the GUI that is you change the commend in the menus AND you change the keyboard shortcut.