so im building a robot with a rpi0 and python and have two codes i want to be able to change in between
the 1st code witch is the main code it boots into is just a remote control code that uses a portable keyboard as remote
the 2nd code is one that uses a ultrasonic sensor to move around on is own
So iv looked around but cant find a way to use a keyboard button press or whatever to switch back and forth at will
any help much appreciated
thanks