Hacked is a serious problem in cryptocurrencies, cases of hacked private keys, hacked accounts on exchanges and many more make us to be alert, few days ago my Google metamask was also hacked and made me lose around $500 and the best thing is to create a wallet then we write private manually on paper, make sure there is no internet connection then we take a photo and save the data.
Wait, private key? The one which composed of a long characters? But, they are too much for you to write manually and what if you missed one letter or you didn't capitalize some of them? But, you're going to take a photo with it anyway though taking a photo or a screenshot of our private keys is not also recommended because someone can browse your gallery.
You have been hacked because maybe you have clicked on the random links which promise you to earn some money or maybe you are going to use a known website but you didn't check its url and you got phished. Storing your keys in an offline environment is much safer though.