Set KeyPreview to true for the Settings form, Escape now closes the window