The STX38 is a John Deere riding mower with 38" mower deck. The one I had was manual transmission with 1-cyl engine. There is a TBN section for mowers and lawn tractors.
If the input shaft on the final drive is keyed and the key keeps shearing off, first look for a sloppy fit and remedy that. Does the shaft turn easily by hand?