Add tabindex for matrix input