Specifically, it's an interrogative pronoun because it introduces a question.
Here's why:
* Pronoun: It replaces a noun or noun phrase (in this case, the thing or person that was in the room).
* Interrogative: It asks a question.
The sentence is grammatically incomplete, waiting for the answer to the question "What was in the room?"