added shift+f to switch to debugger and back

* Shift+F now switches tool to debugger and back again
* Cleaned up code some more
* Fixed a bug with the input/output cache where it wouldn't update
unless you aimed at another entity and back again