This detects a right mouse press. It also unfortunately detects quick drags on to the red square, but that is only because of the lagginess of the forever go to mouse pointer block with the fake cursor.
Thought up entirely by myself! Please suggest improvements in the comments! Music - https://scratch.mit.edu/projects/227385380/