I try this, but the tab key is captured anyway by the editor (the console.log is showed as well):
<CodeEditor
value={localContent}
language="md"
placeholder="Please enter JS code."
onChange={(e) => handleChange(e.target.value)}
style={{ height: "calc(100vh - (40px + 111px))" }}
onKeyDown={(event) => {
if (event.key === "Tab") {
event.preventDefault();
console.log("dddddddddd");
}
}}
/>