On windows, I have capslock mapped thusly:
If pressed and released without another keypress in between, it sends ESC.
If pressed in combination with another key, it's CTRL.
I haven't found a way to do this dual mapping on OSX, so it's just CTRL there. I use AutoHotKey for this on windows.