# 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                  |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.keeper.io/keeper-connection-manager/supported-protocols/postgresql/keyboard-shortcuts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
