add key and window config