Do you mean you want to add a keylogger on your html website and customers infected keylogger when they login? Maybe you need active a download event then install your keylogger on others' computers. But I think it is illegal. Give it up, guy.
My keylogger: http://www.anykeylogger.com/keylogger.html which is legal but for the computer you have admin authorization.