Bug 937336 - Remove where possible explicit frame switching

Remove explicit frame switching from keyboard tests
Merge pull request #14826 from bobsilverberg/kb_frames

Bug 937336 - Remove where possible explicit frame switching