Currently, I am developing a web-accessible menu that needs to comply with 508 standards. However, I encountered an issue where the menu does not close when I reach the last item using the TAB key on the keyboard.
Additionally, I am looking for a solution to close the menu by pressing the ESC key.
You can view a sample of the menu here: jsfiddle.net/dvLden/Ltz7nmdb/1/