Note that pressing 'P' will not return 'P' but they will send signal in integer called KEYCODE
This is engineering guys who did it, so we IT guys just follow. Dont questioned
To detect and return what is the KEYCODE for each button. Refer this link
http://help.dottoro.com/ljlkwans.php
Or I give you guys the code, ha
Javascript code
function callSearchPressEnter(event)
{
var keyCode = event.which;
if (keyCode == undefined)
{
keyCode = event.keyCode;
}
alert ("The Unicode key code is: " + keyCode);
}
For the HTML
bla bla bla onkeydown="callSearchPressEnter(event)"