An existing application that uses function keys can readily be upgraded to use menu bars. To create a menu item that behaves exactly the same as a particular function key, give that menu item an ID that is the same as the function key's exception value.