Please see the attached video of cutting the keyways using a sub routine g code and DDCS controller.
Basically the X axis is central with the bore, the Y axis is set to a finished depth.
Z axis moves up and down, an increment of cut added Y to each stroke until final depth of the keyway, At that point the machine returns to home position.
Typical of a actions of a slotting machine, but using a vertical mill hands off.
Hope of interest.

John
--
John