Not sure why its messing up some characters .
when i test with the key bacon,it returns:
plaintext: Meet me at the park at eleven am ciphertext: Neg zf av uf pcx bt gzrwep oz
The t and the r in the plaintext is not shifted for some reason.
The code is attached below: