studentTyped, function to check whether student typed certain element