implement Compound key and Long-press key functions