# Keyboard Shortcuts

Keeper Connection Manager PostgreSQL connections utilize EMACS-like commands for more powerful text editing. In order to utilize all of these commands, shortcuts are bound to specific Commands.

{% hint style="warning" %}
Note that some shortcuts may be captured by your browser, browser extensions, operating system, or other applications
{% endhint %}

## Common Actions

### Copy and Paste

To copy a region of text, first you need to select the text. The easiest way to do this is to highlight the text using your mouse curser.

#### To Copy

The copy command is `Ctrl-c` or `Meta-w`

Hold the `Ctrl` key and press the `c` key or press and release the `ESC` key then press and release the `w` key.

#### To Paste

The Paste command is sometimes referred to as 'Yank' and is activated with `Ctrl-v` or `Ctrl-Y`

Hold the `Ctrl` key and press the `v` key or press and hold `Ctrl` the click the `y` key.

### Move to Beginning or End of Line

The cursor can be moved to the beginning or the end of the current line.

#### Move to Beginning

This command is done with `Ctrl-A` or the `Home` key

Click `Home` or hold the `Ctrl` key and hit the `a` key

#### Move to End

This command is done with `Ctrl-E` or the `End` key

Click `End` or hold the `Ctrl` key and hit the `e` key

## Complete List of Shortcuts

See the complete list of available commands and shortcuts below.

{% hint style="info" %}
In this table "Meta-" refers to hitting the ESC key followed by the shown key. For example to use Meta-B (ed-prev-word) hit ESC then release, then hit B and release.\
Optionally a Meta key can be setup on your keyboard.
{% endhint %}

| Shortcut          | Editor Command                        |
| ----------------- | ------------------------------------- |
| Ctrl-@, NUL       | set cursor where the mouse is located |
| Ctrl-A            | move cursor to beginning of line      |
| Ctrl-B            | move cursor back one character        |
| Ctrl-C            | clear the terminal                    |
| Ctrl-D            | close the current connection          |
| Ctrl-E            | move cursor to end of line            |
| Ctrl-F            | move cursor one character forward     |
| Ctrl-H, Backspace | delete previous character             |
| Ctrl-J, LF        | newline                               |
| Ctrl-K            | cut line                              |
| Ctrl-L, FF        | clear screen                          |
| Ctrl-M, CR        | newline                               |
| Ctrl-N            | next history                          |
| Ctrl-O            | tty flush output                      |
| Ctrl-P            | previous history                      |
| Ctrl-Q            | tty start output                      |
| Ctrl-R            | redisplay                             |
| Ctrl-S            | tty stop output                       |
| Ctrl-T            | transpose characters                  |
| Ctrl-U            | cut line                              |
| Ctrl-V            | quoted insert                         |
| Ctrl-W            | cut highlighted region                |
| Ctrl-X            | sequence lead in                      |
| Ctrl-Y            | yank (paste)                          |
| Ctrl-Z, TSTP      | tty sigtstp                           |
| Ctrl-\[, ESC      | move cursor forward                   |
| Ctrl-\\, QUIT     | tty sigquit                           |
| Ctrl-]            | tty dsusp                             |
| Ctrl-?, DEL       | delete previous character             |
| Ctrl-Meta-H       | delete previous word                  |
| Ctrl-Meta-L       | clear screen                          |
| Ctrl-Meta-\_      | copy the previous word                |
| Meta-0 to Meta-9  | argument digit                        |
| Meta-B            | previous word                         |
| Meta-C            | use capitol case                      |
| Meta-D            | delete next word                      |
| Meta-F            | move to next word                     |
| Meta-L            | lower case                            |
| Meta-N            | search next history                   |
| Meta-O            | sequence lead in                      |
| Meta-P            | search previous history               |
| Meta-U            | upper case                            |
| Meta-W            | copy highlighted region               |
| Meta-X            | command                               |
| Meta-\[           | sequence lead in                      |
| Meta-p            | search previous history               |
| Ctrl-Meta-?       | delete previous word                  |
