Drag from a port to another port to make a wire. Click an input pin to toggle it. Click a gate or wire, then press Delete to remove it. Right click also removes.