Creating the Code for A Robot with Command Keys

Please don’t post multiple copies of the same question.

Conversation continued here: Developing a coding to move on a robot