Enable interaction with dialogs via keyboard.
Refactor dialog.
Do not forward key press event to lower layers.