I been searching most of the day and even on this forum and the funny thing is I actually found the solution by clicking on a related tab from my topic. This is what I did.
RetroArch Quick Menu while in game > options :
display MAME menu : OFF (if selected the tab menu will not close)
legacy Remapping : actived
May be
input interface : simultaneus (keyboard & retropad)