There is a way to get key without keylogger.
If you copy paste your private key and leave it like that and not copy anything else when you enter some mystical website they could get your private key from the clipboard.
Here is example:
https://hackernoon.com/you-need-to-discover-the-awesome-clipboard-web-api-12b248d05dd3