Adding the key capture to addCursors.