It's simply connected by bluetooth or by dongle and Debian managed to do everything. Flex-launcher also supports it by default. I added some more key-combinations using input remapper such as closing programs, returning to launcher, changing volume.
I actually had some problems with input remapper on Debian and had to install the latest release (the one from the repository didn't work).