Use same command sequence as in switch statement.
No need for RegExp group in match statement.
Avoid using the wrong PaperScope in keyboard events.