Added onBackPressed Event for Creating Keys.