Deteksi saat backspace ditekan

document.addEventListener("keydown", function (event) {
    if (event.key == "Backspace") {
        console.log("Backspace Pressed");
    }
})
Meandering Meerkat