key events for TAB checks on isAutoRepeat
restored painting on canvas