I usually take nurofen. Powerful drug for inflammation and general malaise, and I am pretty sure it doesn't contain anything that can knock you out of ketosis...
Though I have read that infections themselves can do that, as the body turns to burning lean tissue rather than fat during infections.
Is there any general guidance about what to do during illness on ketotic diets?