You need a THREE jaw puller in the holes of the gear to remove it. Remove gear,and woodruff key and the shaft will press out toward the REAR. You can't press the shaft out without removing the key as it will hang up on the bearing.
Looks like your shaft is grooved also. Get a speedy sleeve for it.