The Swedish K can take on two different sounds.
K + E, I, Y, Ä, Ö → [ɕ]*
(en) kedja
chain
(en) kista
chest, coffin, casket
(en) kyrka
church
(en) källa
spring
(ett) kök
kitchen
K + A, O, U, Å and consonant → [k]
kall
cold
(en) kopp
cup, mug
(en) kung
king
(en) kvinna
woman
(en) kål
cabbage
In some loan words, K + E, I and Ö is also pronounced like a regular K because of the original pronunciation. kö [køː], queue, kör [kœr], choir, arkiv [ar’kiːv], archive, monarki [mʊnar’kiː], monarchy, moské [mɔs’keː], mosch, and kex [keks], biscuit. (Kex is pronounced the Swedish way [ɕeks] in some dialects. For instance in Gothenburg dialect.)
In softly emphasized syllable or ending syllable, K + E and I doesn’t turn into [ɕ]. Historiker [his’tuːrikər], historian, rike [”riːkə], kingdom, and tråkig [”troːkɪ(g)], boring.