Added core functionality
Added input field to capture keypress events (hidden by absolute div)
Implemented persistence option
Added reset() method to reset the dialog if re-clicked