refactor(key) switchKey