Updated intentation. Fixed code styles. Minify/packing fix.

Updated intentation, fixed code styles, and important, addded ";" at end to function keyHandler to avoid packing and minify join problems.