Problems with the key combination "$~1" in my DefaultKeyBinding.dict
It seems as you are using 'SHIFT'  the one is changed to "!"

try

/*
    Key Modifiers
    ^ : Ctrl
    $ : Shift
    ~ : Option (Alt)
    @ : Command (Apple)
    # : Numeric Keypad
*/
{
 "$~!" = ("insertText:", "||"); 
}