The keywords are the words in the meta tag keywords. As to predicting how google will rank the words from the meta keywords/ description/ title/ content/ alt attributes etc, nope, no one knows, t'is googles closest guarded secrete
There is a program called KeywordSpy, I dont have it but sounds good as far as what it does. Google it for the website.