Add listener for pressed state