pressed boolean

rewrote code to check for pressed state