One trick is to simply stop receiving input from the player once the paddle reaches a specific X value.
(without having seen your capx)
On key "arrow right"
paddle <= (screen.width - 10)
action - every tick, move paddle.X +1
this way it will stop moving the paddle once it reaches the screen boundary on the right.