let me clear something up real fast- I'm not making a keylogger. I'm creating a site for a video game where users gain items for doing specific actions in game (such as typing something in chat, etc.).
Because of the way this game works, I feel the best way to do it would be to have a website that would, while open, record everything typed (and negate backspaces) to see if the player had completed the action. Then it would lead them onto the next action.
Is there a way to have a PHP or JavaScript script running inside of the website that would record all keystrokes that are typed while the page is open? Then I can have it just listen until it reads the player execute the command (such as joining a guild or trading somebody)?
-Vivian