Why should Jimmy Carter have kept the Panama Canal?

By giving the Panama Canal back to Panama, the Soviets could have easily used Cuba to conquer and sieze the canal. If the Soviets had control over the canal then they could set up bombing bases in the Pacfic without any conflit of passage.