Implement action for home & event keys. Fix #1044.