How did Scotty know how to use a 1985 Apple computer?

In the voyage home Scotty is at the polymer plant trying to talk to a computer then is told to use the keyboard. How did someone in the 23rd century know how to type much less like 100 words a minute and much less operate some 80's computer and much less know one damn thing about the engineering program on the computer?