# Control Context Menu with KeyBoard?

**URL:** <https://forum.kirupa.com/t/control-context-menu-with-keyboard/180509>\
**Category:** flash\
**Created:** [March 1, 2006, 5:42am UTC](https://forum.kirupa.com/t/control-context-menu-with-keyboard/180509 "2006-03-01T05:42:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![blugrafx](https://avatars.discourse-cdn.com/v4/letter/b/ee59a6/32.png) [@blugrafx](https://forum.kirupa.com/u/blugrafx)\
**Post date:** [March 1, 2006, 5:42am UTC](https://forum.kirupa.com/t/control-context-menu-with-keyboard/180509/1 "2006-03-01T05:42:42Z")

</div>

I have augmented the code of my flash context menu similar to the Kirupa banner (disabling default options, and placing a custom option in the menu etc.)

I am wondering if anybody has any ideas or has been able to control the context menu with keystrokes (for example: once right-clicked, close using any key on the keyboard).

I have observed that any option in the context menu can be escaped with the respective alpha key it begins with (ie: if your menu starts is “Hello” you can close it with ‘H’). The problem in this method obviously being you would have to create a custom menu item for every letter in order to quickly escape it on a key stroke… (not to mention a massive context menu)

Any ideas are greatly appreciated…

:bored:
