<!DOCTYPE html>
<html>
<head>
<script type="text/JavaScript">
function showCTRLandKEY(e)
{
document.write("Key Pressed: " + String.fromCharCode(e.charCode) + "\n"
+ "charCode: " + e.charCode + "\n"
+ "CTRL key pressed: " + e.ctrlKey + "\n");
return true;
}
/*
run
Key Pressed: a charCode: 97 CTRL key pressed: true
Key Pressed: q charCode: 113 CTRL key pressed: true
Key Pressed: s charCode: 115 CTRL key pressed: true
*/
</script></head>
<body onkeypress="showCTRLandKEY(event);">
</body>
</html>