This script is written in python 3 so all you need is a version 3 of python with no external libraries. Also this script is for XFCE DE, but you can make this suitable for GNOME or other environments ...
xfce-superkey allows you to open the whisker menu launcher in XFCE using the Super key (also known as "Meta" or "the Windows key"). If you hold down the Super key it will still act as a modifier key, ...
When you start Xfce, it slightly resembles the macOS environment by default, with a menu bar at the top of the screen and a "dock" at the bottom to quickly launch common apps such as a web browser.