Rotating shaft with key slot