implement navigating through menu with up/down keys