Fixed the code mirror skipping Markdown cell bug

Code mirror bug fixed by copying the same code used in textcell.js in "onKeyDown"