Blender text editor and the 'insert' key
You pressed the insert key on your keyboard. It's traditionally above the delete key. This is common behavior, and will do the same thing in other applications as well. Pressing this will toggle between 'insert mode' (normal mode) and 'overwrite mode.'