Creates a new MenuCommand object.
Context and userData will be initialized to inContext and inUserdata respectively.
Context will be initialized to inContext and userdata will be set to 0.