In some aspects, a method of managing communication between a first electronic device and a second electronic device. The method includes facilitating, by a first electronic device, motion of a second electronic device in a motion sequence; detecting, by the second electronic device, motion of the second electronic device in the motion sequence; determining, by the second electronic device, a key from the motion sequence from the detecting, the key being usable to communicate with the first electronic device; and wirelessly communicating, by a communication interface of the second electronic device, with the first electronic device using the key.