Any chance of a picture of the shaft, since you say it has both splines and a keyway?
If you measure the centre distance of the shafts, and the diameter, and tooth count of the driven gear, you should be able calculate the diameter and tooth count for the pinion that you seek.
The OD and tooth count of the driven gear will allow you to calculate the DP of the gears.
You already know the PA of the gears, so you will then have a spec for the gears, and the shaft details will allow a suitable gear to be found, or modified to suit.
Howard (aka Fat Fingers )
Edited By Howard Lewis on 27/03/2020 14:51:19