decode keyboard input. so can print char in screen