You use "qui" for the subject of a sentence and "que" for the direct object.
Qu'est-ce qui passe ? -- What is happening?
In this sentence, "what" is the subject in English and "qui" in French. "Que" can never be the subject.
https://french.kwiziq.com/revision/grammar/qu-est-ce-qui-verb-what-does