I uploaded my code in Gist so I avoid doing spoiler to those who have not finish yet. https://gist.github.com/anonymous/3b51071fe9d7226e9bdb43675290956a
My code is working mostly fine except some weird outputs sometimes. For example if use a key of 8 it will turn all the 'r' in an apostrophe and if I use a key of 7 it will turn the 's' in an apostrophe again. I really can't get what's wrong with my code! Thanks ahead for the help