public static Boolean isKeyMatch(this ConsoleKeyInfo keyInfo, String keyToMatch) { String output = keyInfo.toKeyString().ToLower().Trim(); return(output == keyToMatch.ToLower().Trim()); }