How to escape black screen of browser

//Escaping black screen of browser using Action class and with keyboard button in selenium

Actions act = new Actions(driver);
act.sendKeys(Keys.ESCAPE).build().perform();

//Sample working  code for facebook.com login script

public static void main(String[] args)throws InterruptedException {


WebDriver driver = new ChromeDriver();
// driver.manage().window().maximize();
driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
String appurl = "https://facebook.com";
driver.get(appurl);
WebElement username3 = driver.findElement(By.cssSelector("input[id='email']"));
username3.clear();
username3.sendKeys("qacult.demo@gmail.com");
WebElement password = driver.findElement(By.cssSelector("input[id='pass']"));
password.clear();
password.sendKeys("testing12345");
driver.findElement(By.cssSelector("input[type='submit']")).click();
Actions act = new Actions(driver);
act.sendKeys(Keys.ESCAPE).build().perform();

}

**********************************************************************************************

QACult Best Software Testing Courses in Chandigarh tricity.- We love to enhance your knowledge.

QACult is the premier institute catering to the requirements of experienced and fresh pass-out that gives leaders like you a new way to experience Quality engineering—while you work and giving you the flexibility to both advance your career.
Our faculty have 12+ years of industrial experience and have developed many automation testing frameworks in java using TestNG or BDD (cucumber) methodology. We expertise in developing automation testing frameworks in java, python, javascript, php, ruby(WATIR-webdriver & Capybara) and Appium.
please subscribe our channel for more such updates:

https://www.youtube.com/channel/UC0xat537YITJbN_9GSMUALA
And visit our website: www.qacult.com for various blogs and Upcoming Events.