waitInputDevice