// This code will capture how many key strokes the user has typed and store the value in a form field.

// Just a simple echo to see if me is correctly included
//alert('usedKeyboard');

var keysPressed = 0;
//capture when a user uses types on their keyboard
document.onkeypress = logKeys;

function logKeys() {
	//user hit a key, increment the counter
	keysPressed++;
	//load the amount to hidden form field
	document.getElementById("formfield1234567892").value = keysPressed;
}