I think it's better to use Java's newish try-with-resources functionality rather than explicitly calling close() in a finally block.
please log in to view this image http://digitalunite.com/guides/computer-basics/how-to-use-a-computer-keyboard