Is it possible to create mappings or macros based on
For example, if you press
i you enter
insert mode, and if you press
esc you leave insert mode and enter
Could you make it so that if you pressed down
i you entered insert mode, and when you released it, you left insert mode?
(not that you would want to do that, I am just giving it as an example of behavior)