Fix Slider key event handling for Mac OS.