Ben Lind's TrueFit interview problem solution

This is my submission for the OnScreenKeyboard problem.