Major refactoring; removed dependency on `keydown`, optimized and reduced code base a lot.

Fixes #2
Remove trailing spaces from index.html
Handling edge case of starting or ending the guarded area with an input radio group

Fixes #4
Merge pull request #3 from KATT/master

Refactoring + fix #2, #4