Use page up and page down keys to move Z axis if keyboard mode for XY is selected.