set to use key window