added method catchType

Method created to add the keyboard input into corresponding memory segments. Ignores any input that exceeds the maximum allowance of characters and obtains the first 2 characters.