Until about fifteen years ago, this was spelled 'crack'. The reasons for the change are twofold:
- To distinguish it from crack cocaine
- To make it look like a word in the Irish language should (there being no 'k' in Irish)
The question remains, however: does the word originate in the Irish language? Who knows.