Add exit confirmation and goto-line keyboard shortcut