Add keyboard functionality to slider