test up/down/right/left key