I want to learn Korean but the grammar is what gets me. (I know a lot of the letters)

Like for example there are 3 k's and I don't understand the differences and when you use them, same thing goes for g/k since they mean the same how do I know when a word is with a g or a k if they are represent by the same letter. Let me know if there a some good clear websites for this as well.