Hotkey register causes the app to crash with the following output:
ventsi@localhost:/media/sf_prosper> go run app.go
X Error of failed request: BadAccess (attempt to access private resource denied)
Major opcode of failed request: 33 (X_GrabKey)
Serial number of failed request: 10
Current serial number in output stream: 11
exit status 1
Commenting out the code to register hotkey fixes the issue:

This is openSUSE Leap 15.3 running in VirtualBox.