Minor code and formatting tweaks to Keyboard.js

Digging through the Keyboard module my OCD-ness noticed a few things that could be tweaked.