I’m not sure why that wouldn’t work. Are you running a nonstandard copy of Vim or use an unusual terminal? Make sure that you press the escape key (labelled Esc on most keyboards) and then type one of the commands. You don’t need to click anything, you just need to press Esc followed by the keys that make up one of the commands.
If you (possibly accidentally) made any changes to the text file, you need to not use the :q command, as it will fail if the file has been modified. If the buffer you’re working with is not a named file (for example if you opened vim by just typing the command “vim”), you also can’t use the :wq command. I recommend using the :q! command, as that works all of the time.
Also, after typing these commands, you need to press enter to issue them.

I hope this helps!
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence