Use 'who ever' as two words when it is being used for emphasis, usually in rhetorical statements expressing surprise or puzzlement.
"Who ever thought this one up?"
In that statement, 'ever' is being used as an intensifier:
"Who thought this one up?" - "Who ever thought this one up?"
compare
"Whoever wants it - lunch is ready."
Think of the difference between how you would use 'however', and as in the sentence, "How ever do you do that?" - "How do you do that?"