Fixed problem with random IRCodes

Changed checkForInput to not test IR code for 0 but to test for codes
it is expecting.