Keymod for key events. Improve EventHandler interface.
Created class Task.
Renaming some functions.