Lately I purchased a OSMC remote (e.g. https://osmc.tv/store/product/osmc-remote-control/). It is pretty awesome as HA affords a straight forward integration of such a remote using the standard https://www.home-assistant.io/components/keyboard_remote/ component.
As the remote has very few keys I thought about double utilization of the remote keys using “long press”. The standard keyboard_remote component does not support “long press”. I quickly hacked something that works quite well for my setting.
If somebody is interested in having long press:
https://github.com/bastianbeggel/hassio/blob/master/custom_components/keyboard_remote2/init.py
To activate it you must have a keyboard_remote2 component in configuration.yaml (example: https://github.com/bastianbeggel/hassio/blob/master/configuration.yaml) and catch events in your automation (example: https://github.com/bastianbeggel/hassio/blob/master/automations.yaml). “Long press” events have the original key code + 1000.