Add Jasmine support for unit tests + tests for KeyPressHandler
Refactor KeyPressHandler