_s: Changed the elements to match arrow key codes with navigation

Previous JS was not working properly