Just to understand the question. You are using these two input elements (default is that they are text fields) as buttons, and you need the value of "action" (the name of the inputs) so that you can see if it was "Enter" or "Cancel" that was clicked when submitting the form? And then you need a localized display text for each button?