Use ImGui::GetKeyIndex(ImGuiKey_Insert) instead of key code 45.
diff --git a/TextEditor.cpp b/TextEditor.cpp
index a25896c..c66ef9f 100644
--- a/TextEditor.cpp
+++ b/TextEditor.cpp
@@ -495,13 +495,13 @@
 			Delete();

 		else if (!IsReadOnly() && !ctrl && !shift && !alt && ImGui::IsKeyPressed(ImGui::GetKeyIndex(ImGuiKey_Backspace)))

 			BackSpace();

-		else if (!ctrl && !shift && !alt && ImGui::IsKeyPressed(45))

+		else if (!ctrl && !shift && !alt && ImGui::IsKeyPressed(ImGui::GetKeyIndex(ImGuiKey_Insert)))

 			mOverwrite ^= true;

-		else if (ctrl && !shift && !alt && ImGui::IsKeyPressed(45))

+		else if (ctrl && !shift && !alt && ImGui::IsKeyPressed(ImGui::GetKeyIndex(ImGuiKey_Insert)))

 			Copy();

 		else if (ctrl && !shift && !alt && ImGui::IsKeyPressed(ImGui::GetKeyIndex(ImGuiKey_C)))

 			Copy();

-		else if (!IsReadOnly() && !ctrl && shift && !alt && ImGui::IsKeyPressed(45))

+		else if (!IsReadOnly() && !ctrl && shift && !alt && ImGui::IsKeyPressed(ImGui::GetKeyIndex(ImGuiKey_Insert)))

 			Paste();

 		else if (!IsReadOnly() && ctrl && !shift && !alt && ImGui::IsKeyPressed(ImGui::GetKeyIndex(ImGuiKey_V)))

 			Paste();