Apologize me as I am a beginner and I am trying to Run my keypress Event but when I press the Enter key it is not responding need help.
Enterbtn.addEventListener("keydown",function(event){
if(input.value.length>0 && event.keycode === 13){
let li=document.createElement("li");
li.appendChild(document.createTextNode(input.value));
ul.appendChild(li);
}