How does a local key transfer work?