I’m looking for someone who can help me make this line tool variation

Sorry, I may have replied on the wrong thread. Dan pointed it out here: How to assign keyboard buttons within a script - Developers / Ruby API - SketchUp Community

What I mean is that I used the code from the ruby-api-tutorials/examples. sketchup-ruby-api-tutorials/examples at main · SketchUp/sketchup-ruby-api-tutorials (github.com)

I knew that there is a VCB example and an inference lock example there. So, I just found the “inference_lock_helper.rb” file, and ‘remapped’ the the buttons:

VK_LEFT, I changed to x axis.
VK_UP, I changed to y axis.

Then I added VK_Down and pointed the inference lock to y axis.

In this way the arrow keys are more like Left/Right and Forward/Backward.

It ‘works’ but you have to use “-”. Dan showed an example using .reverse. I’m going to presume that is what needs to be done to solve the problem. But I don’t know how to do that.