Fixed bad paste for key grabbing code. Tweaked MainSettingsDialog.