hide done & cancel buttons (with inputfield)

Does anyone know if it is possible to remove the “cancel” & “done” buttons on the mobile keyboard?

I am testing on iOS btw.

I changed the keyboard.mm file, which worked, but now (logically) these buttons are gone everywhere.
I only want them gone at a specific inputfield, is that possible?

Also where can I get the specific call back of the cancel and done button?
Is there a way to do something based on these specific buttons?