Finish testing Input subsystem, fix a few bugs and API annoyances in Focus.