Figma plugin api : using alert prevent normal keyboard characters to work

sometimes for quick debug, it is convenient to use alert instead of opening console etc and/or setting debugger etc.

but what’s pretty annoying is that very often some keyboard characters won’t work any more except non characters keyboards which continue to work. This is soooo weird.

have to close document and reopen again.