Fix of unexpected 1px margins
Implemented control focusing and key events handling
Also reworked event system a little