There is the way, but it can log just text, that has been written to the input
text in form.
This way is onKeyUp event and send (via ajax) the text to the action page (php), that can handle the strings that was sent.
I can make one for you if you want it.
But Im not sure if there is something, that can log every key press on the page.