I cannot go to end of line

I am on Windows. I am suddenly not able to get to the end of a line in the editor. When I press “end” or use arrows, the cursor jumps to the next line before reaching the end of this line.