Method. Waits a specified time for the keyboard to be locked for a specified duration.
public boolean waitForKeyboardLock(long duration, long timeout)