hi,
you can try this
<script type="text/javascript" language="javascript">
if (window.captureEvents) {
window.captureEvents(Event.KeyUp);
window.onkeyup = executeCode;
}
else if (window.attachEvent) {
document.attachEvent('onkeyup', executeCode);
}
function executeCode(evt) {
if (evt == null) {
evt = window.event;
}
var theKey = parseInt(evt.keyCode, 10);
switch (theKey) {
case 113:
document.getElementById('button1').click();
break;
case 119:
document.getElementById('button2').click();
break;
case 120:
document.getElementById('button3').click();
break;
case 87:
if (window.event.altKey)
document.getElementById('button4').click();
break;
}
evt.returnValue = false;
return false;
}
</script>