This is an example of a button with a drop down menu. It is keyboard accessible, and screen-reader friendly.
The code is framework-agnostic, and can be found on GitHub.