Timing set removal

Anyone had advise on how to remove the timing set off a 340? Looks like the upper gear key has a lip at the end that is keeping the gear from sliding off. How do I deal with this?
IMG_1397.JPG IMG_1401.JPG