In order for the Mac can deal properly with the assignment, it needs a KeyBinding (Source: [...]). I have to create the file with the following contents /Library/KeyBindings/DefaultKeyBinding.dict:
{
/*[...]*/
/ * Local Save: Cocoa text System.webarchive * /
/ * Home Shift + Home * /
"\ UF729" = "moveToBeginningOfLine:";
"$ \ UF729" = "moveToBeginningOfLineAndModifySelection:";
/ * End Shift + End * /
"\ UF72B" = "moveToEndOfLine:";
"$ \ UF72B" = "moveToEndOfLineAndModifySelection:";
/ * Left curly brace * /
"~ 7" = ("insert text:", "\ U007b");
/ * Right curly brace * /
"~ 0" = ("insert text:", "\ U007d");
/ * Left square brace * /
"~ 8" = ("insert text:", "\ U005b");
/ * Right square brace * /
"~ 9" = ("insert text:", "\ U005d");
/ * Backslash * /
"~ SS" = ("insert text:", "\ U005c");
/ * * Tilde /
"~ +" = ("Insert text:", "\ U007e");
"~" ~ Q "= (" insert text: "," @ ");
}