Fix undo/redo/clipboard
Refactor custom shortcut logic