User:Tarun365/shortkey.js

keymap={83:"#pt-mysandbox a",80:"#pt-preferences a"}; $("body").keyup(function(event) {   console.log(event);    var selector=keymap[event.which];    console.log(selector);    $(selector)[0].click;} )