I use the Keydrown plugin, so this works nicely with letter keys:
kd.W.down(function () {
//...
});
How can I assign the same function to lshift instead of W? (I don't know how to put here a keycode instead of letter).
And if possible, how can I select 2 keycodes and do something for lshift+W? (when both are pressed at the same time).
edit:
Seems the best and the most simple way to select any key by keycode is to edit the plugin itself - to edit the keycode list under the KEY_MAP. For example add:
,'LSHIFT': 16
to the list, and call kd.LSHIFT.down
.
The question about lshift+W still remains - is it possible to put the 2 keycodes under the 1 name in this KEY_MAP list? (would be the best / simplest solution)