add option to close preferences by using CTRL+W

Signed-off-by: Lehner Florian <dev@der-flo.net>