If Keyboard Maestro Engine itself is using high CPU, then use the Activity Monitor to sample the Keyboard Maestro Engine process to find out what it is doing and send it to support.
If the Window Server is high CPU until you quit Keyboard Maestro Engine, then I have no idea, since it is the Window Server doing whatever the Window Server wants to do and that isn't something I control.