fix onKeyUp in codeEditor