Go to the generator. Use the key power the spaceship.
In the spaceship, use the piano and the library book to set the sliders on the control panel.