|Unplugging and restarting you router should not change the WEP key. That is normally stored in non-volatile memory.|
However, if you have lost your WEP key the only way to change it or to reinstate is is to connect to the router by wire and log onto the routers management interface. You can the reconfigure the wireless from there. The router manual will tell you how.