It's useful for a variety of purposes.. Ensuring ur byte stream can be completely displayed on screen (how would u "display" the button Escape) or detecting particular buttons on the keyboard when pressed, etc..
Also, character encoding is a huge thing when u talk about displaying characters in muti-languages, etc.