The cuneiform ša sign is a common, multi-use sign, a syllabic for ša, and an alphabetic sign used for š, or a; it is common in both the Epic of Gilgamesh over hundreds of years, and the 1350 BC Amarna letters.
Besides ša usage in word components of verbs, nouns, etc., it has a major usage between words. In Akkadian, for English language "who", it is an interrogative pronoun; in the Akkadian language as ša, (as "that", "what"; ("that (of)", "which (of)"), in English it used for who, what, which, etc..
The difference in the construction of the signs ka and ša are as follows: "ka" when scribed in the Amarna letters often shows the distinctiveness of the right section of the sign, versus the left section. For ša, the right section is constructed with two wedge strokes (one scribed above the other), between the two verticals, at right. For ka, the right side mostly, in the Amarna letters has two verticals, with two horizontals that cross both of them; (the right side is like a two-step ladder shape—(for Hittite ka:—)). A good example of ša, is shown for EA 365, Reverse (top half), where the 2-wedge strokes of ša between the 2-right verticals is clear. (Note, the ša of EA 365 appears to have 3-horizontals at left (differing lengths), then the 2-verticals with the 2-wedge strokes, at right.)