tried this to no avail onKeyDown={(e) => { if (e.key == "Enter" && (e.ctrlKey || e.metaKey)) { onSubmit(e); return false; } }}