Getting the id from previous tab using local storage

I want to pass the audio id from one tab to another tab to control the audio in the previous tab from the dynamically opened new tab using keydown events.Below is my actual code which controls the audio with keydown event when i am that tab