I want to write a script which reads my keyboard inputs (e.g. 5x arrow right, 2x arrow up)
and inverts these commands (in that case 2x arrow down, 5x arrow left).
So if I move from a couple of cells in Excel, it should go the way back to the beginning.
My concrete idea is this:
1. Pressing a key to start the recording, F1
2. Moving with the arrow keys
3. Pressing again a key (can be also F1) to store the current movement and to start another recording
4. Moving with arrow keys.
.
.
.
Pressing a key to finish the recording, F2 (wrongly shown in the picture)
Graphically it would look like this one:
![Image](http://fs1.directupload.net/images/180107/un8b83cn.jpg)
Now I want to be able to go back to point 1, backwards.
Recording would be done with KeyHistory I guess.
But regarding the inverting I have no idea.
I only found inverting mouse movements, which is not my aim.
Best regards