To set up a Back Tap shortcut on your iPhone, you just need to head to the Accessibility section of your Settings app.
To unlock your iPhone from its carrier, you'll likely need to contact your carrier directly to cancel your contract.