When I register ActionListener on a non-editable JComboBox it fires actionPerformed() every time user changes selected item with arrows keys or with context search (typing the first letter of the item name).

I found similar question here: 
[How to make JComboBox selected item not changed when scrolling through its popuplist using keyboard](https://stackoverflow.com/questions/5194786/how-to-make-jcombobox-selected-item-not-changed-when-scrolling-through-its-popup). But that solution doesn't cover context search option. It fires actionPerformed() when I type something.

How to determine when user confirms selected item using enter key or mouse click?