PopupMessage can now be accepted by pressing enter

PopupMessage now behave like a popup usually behaves and will be
closed by either pressing Ok or pressing enter.