Hide mage on press Enter or click/tap