I found that the 'when' condition, even though seeming correct was preventing the mapping from triggering.
!notebookEditorFocused && editorLangId == 'markdown'
I removed this and it works as expected now... maybe not the best fix but it got the job done.