Home > UserEventByName

UserEventByName

UserEventByName is a project mainly written in JavaScript, it's free.

Get keyboard events by name (e.g. space, up, down, etc...)

User Event By Name

This allows you to access keyboard events by their human name rather than keyCode.

window.onkeydown = function (e) {
    UserEventByName(e,"space,up,down"); // will return true if space, up, or down are pressed, false for everything else.
}