Add shortcuts for the menus. fixes #394

You can take the added lines and add them on the 5.x branch if there's going to be an additional version on 5.x