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://kwiziq.learnfrenchwithalexa.com/revision/grammar/qu-est-ce-qui-verb-what-does