Don't re-use key variable when updating a switch through Nexus.

Fixes #60.