You did probably hit the Insert key. An option has that toggle the function you are describing. See attached screenshot.
Save yourself a lot of grief (and time) during the next couple semesters and read through the following:
Perhaps wait until after finals, but not too long after finals!