RWS: close details window when ESC is pressed