Press any special symbol and you will see that Scratch notices it. There is even the enter key! That is the only key which Scratch doesn't give and works using this code apart from the symbols. You can use this but give credit. I have NOT HACKED Scratch to do this code but this will work only in Scratch v3.0. If you have not pressed a key but it is showing that you have, just press the flag again.