code: def _show_shortcuts(shortcuts, name=None):
      
      name = name or ''
      print('')
      if name:
          name = ' for ' + name
      print('Keyboard shortcuts' + name)
      for name in sorted(shortcuts):
          shortcut = _get_shortcut_string(shortcuts[name])
          if not name.startswith('_'):
              print('- {0:<40}: {1:s}'.format(name, shortcut))
docs: Display shortcuts.