print "Use the J and K keys to move the paddle"

fastgraphics

x = 30
y = 280
xinc = 5

loop1:
  a = key
  if a = 75 then x = x + 30
  if a = 74 then x = x - 30
  if x < 0 then x = 0
  if x > 200 then x = 200
  gosub drawpaddle
  goto loop1

drawpaddle:
  color gray
  rect 0,0,300,300
  color darkblue
  rect x,y,100,10
  color blue
  rect x+1,y+1,98,8
  refresh
  return