<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<script type="text/javascript">
document.attachEvent('onkeyup', KeysShortcut);
// Now we need to implement the KeysShortcut
function KeysShortcut ()
{
if (event.keyCode == 49)
{
document.getElementById('<%= button1.ClientID %>').click();
}
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="a" runat="server"></asp:ScriptManager>
</div>
<div id="target" style="background-color: gray">This is a simple div</div>
<asp:Button ID="button1" runat="server" />
</form>
</body>
</html>