Mapping F13, F14, F15
You can use a private.xml like this with Karabiner (previously named KeyRemap4MacBook):

&lt;?xml version="1.0"?&gt;
&lt;root&gt;
  &lt;item&gt;
    &lt;name&gt;test&lt;/name&gt;
    &lt;identifier&gt;test&lt;/identifier&gt;
    &lt;autogen&gt;__KeyToKey__ KeyCode::F13, KeyCode::BRACKET_LEFT, VK_SHIFT&lt;/autogen&gt;
    &lt;autogen&gt;__KeyToKey__ KeyCode::F14, KeyCode::BRACKET_RIGHT, VK_SHIFT&lt;/autogen&gt;
    &lt;autogen&gt;__KeyToKey__ KeyCode::F15, KeyCode::BRACKET_LEFT&lt;/autogen&gt;
    &lt;autogen&gt;__KeyToKey__ KeyCode::F16, KeyCode::BRACKET_RIGHT&lt;/autogen&gt;
  &lt;/item&gt;
&lt;/root&gt;


Change for example KeyCode::BRACKET_LEFT, VK_SHIFT to whatever key combination inserts { in your keyboard layout.