How encryption works
Encryption adds the key letter to the plaintext letter, A = 0 through Z = 25, wrapping modulo 26; decryption subtracts instead. The keyword repeats cyclically, so positions 1, 7, 13 and so on all use the same key letter. A plaintext letter encrypted under one key letter has no relation to the same letter under a different key letter, which is exactly what defeats simple frequency matching.