Test input line positive when it Equals a keyword

I can't find a reason why this shouldn't be implemented this way.