boolean isEnterOrSpace