adjust for R plugin and keyboard mapping "ii" for esc