disable keyboard for endstate