Fixes to browse mode focus bounce prevention code:
* Fix a typo that caused the last setFocus time to never be set, thus causing focus events to be allowed through when they shouldn't.
* Get rid of the key counter check, as it is prone to race conditions.
* Fix the browse mode cursor jumping back to the focus when returning to a document.