I'm executing the following code as suggested here.
$("#textBox").on("keyup", function (event) {
foo(event.keyCode === 8 || event.keyCode === 64);
});
function foo(special) {
console.log(special);
}
For BackSpace it works like a charm producing true. However, Del produces false. What's up with that?!