clean up keyboard manager tests and fix broken unit