Adds selection and keyboard behavior to a list.