add KeyEvent and Alarm