How to type PinYin on Windows without the actual letters being typed out as you construct a word?
That is the problem of TyperRacer, not the IME or you. I suggest you using platforms created by Chinese speaking people, which could be optimized for Chinese practice.
For example https://dazi.kukuw.com/keyboard.html