How to Active file display with the UP Button?

I Use 2 file display. Left & Right file display. each file display has a UP button with this code Go UP BACK USEQUALKEYS
After I click this button, it's go 1 level up it's fine but I want to add some code for active the file display also. That means when I click on the left file display's UP Button, it should go one level up and Active the left file display also if the left file display is not the active file display. and the same for the Right file display's UP button. when I click on the right file display's UP Button, it should go one level up and Active the right file display also if the right file display is not the active file display. How to do that?

Try

Set STATE=source
Go UP BACK USEQUALKEYS

lxp Alexander, Thank you so much. your code is nicely working for me.