We need to regain the keyboard focus after the algorithm is run.
Otherwise, somehow, we are not getting any keboard event.
Getting around by calling
    Component.requestFocus()
Merge pull request #24 from karpark/MoreUIWorks3

More ui works3