Add empty methods to implement the copy and pattern copy.
Add new keys for new buttons in contextual menu.
Refactor identical parts in methods into a new method.
Implementation of the copy/past feature.