Keyboard Events
keydown, keyup and keypress respond to keys.
Example
$(document).on("keydown", function (e) {
if (e.key === "Escape") $("#modal").hide();
});Exercise
Key name.
e. === "Enter"
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.