Change the keylistener if statement to switch case as it will look more
neater and added a few hot keys F1 for displaying guid, F2 displaying
all task, F3 will be for undo and F4 will be for redo.