set pressed state