Adding Window menu shortcuts programmatically.