Cords are not a good idea on an infant/toddler toy.How about using an old mobile phone charger plug with 5V USB output. You probably already have one from an old phone but in the UK such plugs with just a USB output are inexpensive. Then chop a USB cable to find which lines are 5V and ground. Or now there are plug sockets which include USB outputs