fix keyboard for input directive