reorganized event handling.

Added direction key
Keyboard event combined with button click event
Added Refresh celll.

Grouped main functions under Action object