How to send `<menu>` key to iTerm?

I know that there is a setting, iTerm > Preferences > Profiles > Keys > Key Mappings.

But where can I find hexcode for Menu/App key that is present in Windows keyboards, so that I can use it as a keybinding in a text editor like Emacs.


Solution 1:

This Windows site lists two options for the menu key with hex codes for virtual keyboards:

a left menu key 0xA4

a right menu key 0xA5

This kind of information is useful for MacOS as well, so here is a site with virtual key hex codes for MacOS.

And finally, in 2010 someone else asked for a list of Mac virtual key codes on StackOverflow, which is a fantastic and informative read to include here.