Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js"></script>
</head>
<body>
press enter
<script type="text/javascript">
$(document).ready(function () {
$(document).keydown(function (e) {
switch (e.which) {
case 13:
alert("You have pressed enter");
break;
}
});
});
</script>
</body>
</html>
The most helpful JQUERY solutions