If you are talking about how to find out right keywords for a website then Google adwords does it or if you want that how to know the ranking keys of a website you just go for webmaster tool whereas you can find out the those keys who are actually ranking or visitors are coming through which keys.