The PyCharm version is 2020.3.3, but this problem also happened in a previous version.
The IDE does not allow editing files at random. And this keeps happening very often.
The problem is only with editing files, scrolling and cursor movement works.
To enable editing again, I need to restart PyCharm.
What could be the problem? How to deal with this?