Speed up kbHeight calculations.

-- Querying the DOM was expensive; now just looping over all the keys.