fix f1 and switch-tab keybindings when "Treat alt key as meta"
preference is set

closes PR 14629

please include on the release branch
fix esc;n keystroke in REPL

closes PR 14631

please include in release branch