Track key up event of input box

How to track key up event of input box?

Hi,

have you tried to detect the KeyboardEvent / InputEvent and trigger a Tracking-Event?

There is some documentation on the Internet available, eg. here:

// just a simple example for you browser console....

document.onkeydown = arrowKey;

function arrowKey(e) {

    e = e || window.event;

    if (e.keyCode == '38') {
         console.log("@->- up arrow")
    }
    else if (e.keyCode == '40') {
         console.log("@->- down arrow")
    }
    else if (e.keyCode == '37') {
        console.log("@->- left arrow")
    }
    else if (e.keyCode == '39') {
       console.log("@->- right arrow ")
    }

}