add cursor key events