Implemented pressed flag for forward and backward button