Fix keyboard selection in presence of applied filter.