Corrected isKeyDown() faulty logic.
This method wasn't behaving properly because only the key_up case was being checked for. The logic is now sound.