Merge pull request #40 from mwoc/home_end

Keyboard events for home/end buttons
Also cleanup selection state on initialization - for cases where an application has selection/focused/anchor on items which do not exist anymore