Indeed that's the simplest way.( What i suggested were workaround as the author of this post was looking for the possible way to actually tap on the key, which is not possible for android)
Yes there aren't any Key code for "Done", to achieve this i usually send enter's key code
Thanks for pointing it out.(Updated the answer.)