When a key runs loose, you normally need to mill a wider keyway in the shaft, widen the keyway in the hub (which is more difficult) and fit a new, wider, tightly-fitting key.