A quick google search shows this seems to be a common issue but opinions vary on if it is an issue with the host or guest system. Both sides agree that is has to do with a misconfiguration of the keyboard. I would check the configuration on your system and in the VM to see if they are set to the appropriate language and layout.
How to do this depends on the operating system you are using for each.
I may not have been clear, please provide the following.
Host OS :
Guest OS :
The keyboard layout on both should match up. I was able to find a website with information on keyboard settings for different linux distributions. I'm not as familiar with Linux as I would like so I cannot speak to its accuracy.
Great! Thank you so much for sharing how you resolved the issue.