Patrick McCarren suggests to map the Caps Lock key to be Escape if tapped, and Left Control if held. This can be accomplished by using the outstanding utility called Karabiner.
New MacBook Pro is Not a Laptop for Developers — Part 2, The Solutions
Alexey Semeney

You can`t do that if you have the Sierra update until the guys from the Karabinier will fix this