The Esc Key when pressed during a Graphics regen is an abort function - that stops the regen where it has got to (leaving a partial draw) so that you can action more changes before running a regen. This was added because when working with large files a regen can take a few seconds or longer and rather than waiting till the regen is completed you can Esc to abort and then carry out the additional changes before the Regen being actioned.
I think that this is what you are seeing - if you turn ff a Layer and the software starts a redraw / regen - then pressing Esc stops the redraw - I see that pressing Esc after changing the visibility of the layer does reinstate the layer visibility - I had not seen that so it is acting like an Undo - I am not sure that this was a deliberate action or not - I am not sure that it is a Good or Bad "feature" as I had never seen or used that - I think that it is unexpected behavior because the Esc key should abort a Regen / Redraw or Modeling action etc. and not act as an Undo
I will leave that to Tim to respond on that
Alan