Fernando Perez already implemented this in one of his branches https://github.com/fperez/ipython/tree/cm-keymaps The archived message in the first post mentions what is necessary for this to get merged.