Answers and code snippets from ASP.NET projects (Webforms/MVC/Classic ASP)
$('html').bind('keypress', function(e) { if(e.keyCode == 80 || e.keyCode == 112) { return false; } })