MISC - Use onKeyPress event of textarea instead of codemirror object.