If you found to be violating rules and regulations laid by United States of America and India, you will be arrested and imprisoned for Cyber Crime.
It is illegal to even discuss about illegal Keylooging, hacking PHRASE, and unethical hacking. I have no idea who editor has approved this AE question and I am afraid this might affect the revenue of ISC from this post.
Ask yourself, When is illegal? Illegal hacking is a way when you try to steal online by doing Keylooging, senting Spyware and Malwares to another system server with the wrong intentions. It is similar to blackmailing somebody or kidnapping someone and asking for ransom or stealing online and we call it THIEF.
Penalties under different circumstances circumstances the law punishes hacking under the computer crime statutes. These kind of crimes carry penalties ranging from a class B misdemeanor (punishable by up to six months period in prison and a penalry fine of up to INR 50k) to a class B felony (punishable by up to 20 years in prison, a fine of up to INR 5000000 Lakhs and you won't be able to touch another computer for the rest of your life.
Here is the list of crimes that you shouldn't be doing in USA and India.
1. Hacking Password or logging in to websites or computers without authorization.
2. Access softwares to steal confidential information including Keylooging, obtaining unauthorized access to data processing, storage access, and clearing databases.
3. Transferring files from other servers, and making damages (Deleting Databases)
4. Hacking computers with VPN, copying data and disclosure from other computers in intention to harm somebody.
The penalties depends on the damages caused by you including stealing information and destruction to the system. While Keylooging softwares are gone these days because most people uses Virtual Keyboard and not the physical keyboard because we all are living in a fast paced world.
If you steal information, by using this kelogging softwares, then you will be imprisoned for 20 years.
Hackers never learns but always wins!