Running a script in a site that copies all keys pressed while the page is open
<p>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.).</p>

<p>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.</p>

<p>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)?</p>

<p>-Vivian</p>