How can my application know which short cut called Menu Form?

Hello,
I'm improving my application now( for a laptop computer mainly).
In my application , Three D Menu, menu form is indicated by a short-cut key, and disappeared by some Short-cut keys.
But I'd like to disappear menu form by the same short cut.
When doing that, I think it becomes easy to use.
How can my application know which short cut called Menu Form?