You can remember the meaning of 居然 with this easy mnemonic:
My friend unexpectedly resides (居) on the same street as my favourite singer, however (然), I haven't yet spotted my singer when I go visit.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.