How to add Keyboard Shortcuts to a Menu Item in WPF

InputGestureText property is used to add keyboard shortcut to the menu item. The following code adds CTRL+O to a menu item.

<MenuItem IsCheckable="true" Header="_Open" InputGestureText="Ctrl+O">