Let <F10> and <F12> work in insert-mode.