show date according to type of todo
remove unused variables
Solved processKeyEvents working twice for each key