Wow, I was looking in the directions of attaching inputs and raycast blocking and layer masks, but this is definitely the way to go. Thank you @Deltakosh !
Another thing: do you have idea how to solve this? : [Unity->BJS] How get a reference to the .ts script sitting on another game object