Lightweight boolean key state library