Added correct boolean parsing of keys