In the Keys screen

To change the order of the lines and or to delete a line select the ↑↓ icon top right of the screen.
To change the order of a line touch the ↑↓ icon on the left hand side and drag the line to the new position.