How to quickly add to palette from keyboard selection?

It is possible to do.

Here is a similar sort of example: