I'm getting sick of LED blinking.
I'm sure that at this Lab the description and the required behavior is not the same. So I found only the solution in the forum.
In the description was "record PortF bits 4,1,0 every time the input changes or the output changes", but the solution:
record PortF bits 4,1,0 every time the input
In addition the information was missing about the storage of the initial state value - it should not be stored.