fixed indents
added karma config for the refactored files
added keycode helper