Handling key press event almost done; Function kernel_getchar changed to line buffered