The key should be softer metal than the sprocket or shaft. A three prong puller should pull the sprocket off the shaft.
Another option if you have room between the sprocket and frame to get a pipe wrench on the flange of the sprocket and block the shaft so you can get the key back in the key way.