Well, an app could have two buttons, for long and short morse, like a keyer.
Where would you want the code to be sent? Sounds like it wouldn't be all that hard to make an app like that.
You could use digital touch and draw long and short symbols with it (using the line drawing) I suppose.