The camshaft and gear are a interference fit requiring the gear to be preheated for 45 minuets in a 300*F oven to install properly bolt is to be heated to 350*F,
the shaft and gears bore are a straight Dia. so key damage is not as likely.
Looking at your pump keys I'd wager that they were not seated correctly in the shafts keyway and were deformed when the gear was tightened on installation,
not a totally uncommon issue with a tapered shaft/bore assy. keys are much softer than either pumps shaft or gears bore.
They make a tool to R&R cam gear but they run from $600.00 to $1,400 so not for the home mechanic doing it once or twice.
Here is a link to the heat install method.
Install the key. Lubricate the camshaft surface with Lubriplate 105 or equivalent. Caution: The camshaft gear will be permanently distorted if overheated. The oven temperature should never exceed 177°C I350°F]. Heat the camshaft gear for non bolted 91 ’ camshafts in an oven at 149°C [300°F] for...
www.dieselmechanic.info
You can remove the gear with camshaft out of the engine with a hydraulic press, however if you are not experienced with using a press for interference fits
there are many ways for things to south in a hurry and the gear is somewhat fragile when you apply the needed force to separate it from the shaft.
I would think whoever assembled likely did it correctly or it would have failed before now...$.02