I have the following configuration for shortcuts, that works after running it in the cell of Jupiter notebook:
%%javascript IPython.keyboard_manager.comman
custom.js is the correct place for this code. Try wrapping it as follows (don't forget the return true before the end of the block):
return true
$([IPython.events]).on("app_initialized.NotebookApp", function () { return true; });