I want to have a dialog pop up when a button is clicked so the user can enter a key. I also want the dialog to return what the user enter. I have looked but can't find any good examples, does anyone have some or know where some good examples are. Thanks