added keys to change viewport size, forward and backward movement added, line width changing added.