Key Input

Added the functionality of I/O and key input/word matching