event binding to arrow keys.