Fix bug in Chrome + Windows: brackets are handled as control keys

 - check in function: _HandleChar whether the character is a bracket before aborting the insertion of the character
 - add tests for brackets
 - enhance helper method type with options in order to be able to set further attributes of events incl. ctrKey
Refactor slightly helper methods

  - add function triggerEvent, which can be used by type, typeA, keyDown