AGD has a CONTROLMENU command that waits for the player to press 1, 2 or 3 and sets the controls to keyboard, Kempston or Sinclair joystick accordingly
You should display the text on screen yourself using messages. There's also a WAITKEY command that will just wait for a keypress and won't set the controls