Coke as a nickname for cocaine and the abuse thereof post-dates the song. Cokey referred to black, as in from the coke of coal mining. See Tintin's "Coke en Stock" (which I think was titled in English something about the Red Sea sharks, because of the new meaning of Coke in English by then).