Your notebook expects Python code, but you're giving it a shell command.
While it is possible to execute shell commands in a Python notebook with the ! prefix, these commands will actually be executed in a sub-process, which terminates as soon as the command is executed. You cannot change key bindings that way, because they would only apply to the sub-process.
cheers,
Roland