Are there anti-keylogging programs that can keep you safe while you are using a public PC terminal? Do they exist and what are these? I like to know that I am safe when entering data on a public PC for example from malware or keyloggers, who knows where it has been. Or else, how can I keep my personal data safe when using a public PC?
You can't ever be safe on hardware you don't control.
The answers to How Do You Login From An Unsecured Computer? are also very good here.
I would suggest never using a machine you don't trust for anything that requires you to login. If you absolutely have no choice but to do so, hurry to a secure machine and change your passwords immediately afterwards.