To make <F2> work as expected, your terminal MUST BE xterm, not ansi.