How to prevent accidental keystrokes while macro is running

You could make the prompt ask for a password, and put that in a loop to stop it being bypassed e.g. Escape key or Enter key