I think that you can type in Hiragana if you are not sure its kanjis. Native speakers can guess its meanings. But the best way is to use a dictionary.XD
好きなことをするときが一番幸せだと思います。