I try to optimize everything. One thing I do frequently is closing windows and closing tabs. Is it possible to set the F1 button to close windows in Ubuntu 14.04? (i.e. same behavior as ALT+F4) And scroll lock or F2 to close tabs (i.e. same behavior as CTRL+W)
Shortcuts, the F1 simply opens the help menu for the keyboard application. It cannot set it as shortcut "value". And there's no entry for closing tabs.
The latter may be application-specific. So a keyboard intercepter solution may be the way to go. If possible, I'd like ALT+F4 etc. to keep working.