Add undo/redo hotkey.

Press of undo hotkey is undo, shift-press is redo.
No action when window is hidden.