Minor refactoring
Introduce "char" attribute to keyboard events