Prova cosi
codice:
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="jquery.hotkeys-0.7.9.js"></script>

<script type="text/javascript">
$(document).ready(function(){
	$(document).bind('keydown', 'del', function() {
		$('#foo').trigger('click');
	});
});
function delete(){
if(confirm('proseguire con questo link?')){
return true;
}else{
return false;
}
}
</script>
</head>
<body>

elimina
</body>
</html>