detection of keyboard keys in the movement in the x and y