You can follow the instruction inside the documentation or the example below.
https://xxuurruuii.github.io/PuzzleScriptNext/src/Documentation/mouse_input.html
https://xxuurruuii.github.io/PuzzleScriptNext/src/editor.html?hack=669bd147a86d4011dcfafa6560172013