I'm using the below code to check whether the user have pressed the 'shift' key. It returns 16 correctly, since its the keycode for 'shift'.
But is there any way we can detect whether the pressed shift is the left or right one in the keyboard?
Here is the code I've used:
$(document).keydown(function (e) {
if (e.keyCode == 16) {
alert(e.which + " or Shift was pressed");
}
});