how to remap tilde to touch bar if the tilde is now mapped to esc key.

I mapped tilde to esc and then mapped a touch key to tilde button and now it just does an esc.
I want the touch button to print the tilde character not do what the tilde button does which is now esc.