So just hand it off to the new Empire?
The Commonwealth still exists. The people in Gibraltar don’t want to be part of Spain.
No, they keep it. For the sake of their people. Just not for any strategic reason.