Javascript keychording helper