Distinct signaling mechanisms regulate migration in unconfined versus confined spaces