Motor cans keep coming loose WAHHH

Not only that, but even with a key, that doesn’t stop the shaft from wobbling out the bore. Keeps things from spinning sure, but doesn’t help with the other axes.