I'm using the component MenuItem (material-UI) and I'm trying to choose an item when user press the 'tab' key, something like that:
{Object.keys(Countries).map(key => (
<MenuItem key={key} value={Countries[key]} onKeyDown={(ev) => {
if(ev.key === 'Tab') {
//How can I choose the selected item with tab key?
}
}}>
{Countries[key]}
</MenuItem>
))}