Tidy the layout of the code that sets the keyboard shortcuts.