Detecting control-click, command-click, meta-click, alt-click and shift-click in JavaScript without listening to keydown events is straightforward.
The naive approach is to bind aggressively to key events (keydown, keypress, keyup) and to maintain state of what is currently press ...