left and right keys implemented in the form