alternative to switch statement for list keypress

-- add tests around ic-menu-list keyboard interaction
-- avoid switch in ic-menu-list with a key lookup
-- guards against undefined error in ic-menu-list