Events implementation

- Adding events implementation into the Control class.
- Removing TextControl class (this methods was put into the Control base
class).