If I remember correctly: both means "the" and sort of works the same way en/ett does in Swedish. Words that begin with K, A, E, O USUALLY begins with ke whilst the rest USUALLY with ka
As far as I know, words that start with KAEO always take ke, while the other usually take ka but can take ke, especially with extended meanings of existing words. See: