What is the basic logic behind the configuration of the keys or the order of the keys on a keyboard?

I am a computer student. I mainly work on the computer and I really wonder about the configuration of keys on a keyboard. It is comfortable and easy. My question is: what is the basic logic behind the configuration of keys on the keyboard? Who presents this concept?