A keymap can define a menu as well as bindings for keyboard keys and mouse button. Menus are usually actuated with the mouse, but they can work with the keyboard also.
Defining Menus How to make a keymap that defines a menu.
Mouse Menus How users actuate the menu with the mouse.