Inherited from Latin quem.
Practice speaking and memorizing "quién" and many other words and sentences in Spanish.