RWS: close details window when ESC is pressed

Even if @lerks is trying to port RWS to angularjs (see #191) and this will probably be unuseful in short time, this tiny commit fixes #194.