Our first step is to create a remote control system using an EV3 Brick. Make sure you check out the challenges first
The code on the left is for the controller and the code on the right is for the robot. Keep in mind this showcases just how to go forward, backward, and stop. You can edit this to your liking based on your robot and how you want to control things.
The code on the left is for the controller and the code on the right is for the robot. Keep in mind this showcases a few more options, but does not make it better or worse than the first option. You need to figure things out for yourself and learn what will be your best option for coding. The key is that you understand how things work.