Remove trailing whitespace.
Adding keydown listener for escape key to close overlay.