Just need to make sure pedal down is idempotent. Having the pedal send something like Shift+F2 and then `nmap <s-F2> i` `imap <s-F2> <Nop>` takes care of that. Escape is always idempotent so no issues there.
If you are appending to the end of the line <esc>i will move you left one character.
That said, for me as a pianist the idea of mode pedal looks pretty awesome. It just needs to be developed a bit further.