JQuery or JavaScript: How determine if shift key being pressed while clicking anchor tag hyperlink? January 8, 2023 by Tarik $(document).on('keyup keydown', function(e){shifted = e.shiftKey} );