Keybinds for Nav Bar

What is the simplest way to have a keybind open a link? ( I have a navbar with 4 robust pages linked to it. I want <kbd>1</kbd> to open a section, <kb2>2</kbd> to open a section and so on.
Was this page helpful?