So, if you buy the two or three gears that you need, you may well have to widen or cut the key ways.
Ideally the new gears will be without a key way.
Hope that what follows is not teaching granny to suck eggs.
Having bored the gear hub to the correct diameter for your lathe:
Turn up a sacrificial bung, which is a snug fit in the bore of the gear.
On the boundary between the gear and the bung, centre pop, centre drill, and open up to 1/4" (or if cautious, to 6 mm ) diameter.
Remove the bung – it can be reused for the other gears, by drilling in another position.
The new gear now has a semi circular slot 1/4" wide and 1/8" deep, through the bore.
File away the surplus material to change from round to rectangular. (The keyway needs to be only half the depth of the key ) The key can be used as a gauge for the width, and then with one of the studs, for the depth in the gear.
Repeat for the other gears, and you should be ready for cutting whatever thread of which the lathe is capable.
HTH
Howard.