Prompt keyboard and backbutton handler