Fix for issue #21

This is supposed to be pulled after the other pull request, originating from my master branch.
Fixes issue #21 - with anchor set to wrong item when using up/down keys to change selected item