on ubuntu 20.04 LTS the RENAME function does not work by pressing the F2 key for the files on the Desktop

I just got a Lenovo ThinkPad and was having similar issues. I found that I had to go into the BIOS settings to configure the behavior of the function keys of the laptop's keyboard.