showing results for - "how to see if user clicked key in js"
William
25 Jan 2019
1document.addEventListener("keyup", function(event) {
2    if (event.keyCode === 13) {
3        alert('Enter is pressed!');
4    }
5});