Fix javascript errors.

* keyboard_shortcuts.js:210 - ReferenceError: $$ is not defined.
* keyboard_shortcuts.js:220 - TypeError: ksm.keys[j] is null.