What you’re actually asking is very simple…
Both of the following blocks would do the trick.

You probably wan the motor to stop if you let go of the button, or to stop as some other time. You will need to account for that.
In the controller setup you can quickly attach motors to pairs of buttons. Do not also code for these motors as that may cause unexpected results.
