On the initial screen when you start the game, type Zaphod Beeblebrox. Make sure that you type in the letters as either capital or lower case and also that you put in the space. When you get it right you will hear someone say "Groovie!".
You can now click on any of the corners of the sphinx ouija board to be taken anywhere in the game (including the ending sequence).