Pressing ESCAPE key should close a window.
Often i open a window or detail panel but then need to close it quickly. It would be incredibly helpful to use the escape key to do this. It is significantly faster than moving the mouse and clicking on the X.
Some windows currently are closeable by the escape key while others are not.
Obviously if the window contains important / incomplete data the user should be asked if they are sure they'd like to exit.