You can use html snippet & jquery to do that.
You will need to define a class to your input label as below.
After that you need to add HTMLSnippet and configure your jquery code.
You can use mendix api to call microflows inside js etc. You can find the example javascript below.
$(".inputlabel").keyup(function(event) {
if (event.keyCode === 13) {
mx.data.action({
params: {
actionname: "Playground.ACT_LogIt"
},
origin: this.mxform,
callback: function(obj) {
// no MxObject expected
alert("Just petted the cat a little");
},
error: function(error) {
alert(error.message);
},
onValidation: function(validations) {
alert("There were " + validation.length + " validation errors");
}
});
}
});
I hope that helps.
The code for the Enter key is "Enter", not "KeyEnter". See: https://keycode.info