Switching focus between editor and terminal in Kate
There's a "Focus Terminal" shortcut in the "Configure shortcuts"
There you can set it up. F4 didn't work by default in my case and Shift+Tab worked only in one direction.
this is a bug in kate. possible workarounds: a) shift back by pressing Shift+Tab, b) try another shortcut (some do work). see also Bug 157496: Alt+[Key] shortcuts for menu items do not work.