Making Boostrap Menu Accessble:

Example 2: Trap Escape key

This is the default after trapping Esc key to close the menu. behaviour. Before beginning, make the browser narrow enough to go to the hamburger menu.