There are a few letters that can take more than one sound. There is a set of grammatical rules.
By default it's /kh/.
To be succinct, it's /k/ when it's at the beginning of a syllable, or right after the definitive article.
There are other rules as well.