Tried to make menu accelerators work for multiple platforms.