added ace key event handler