Fixed brackets added list of keyentries function