Set the scroll mode of KeysWidget to QAbstractItemView::ScrollPerPixel (much smoother than QAbstractItemView::ScrollPerItem).