you can click build while travelling. also when you have clicked build even if you don't have money to buy anything you can't shoot. so you have to click an item even if you can't afford it to close the build menu
You can right click to exit the build menu. It's not stated anywhere, sorry.