One trick is to simply stop receiving input from the player once the paddle reaches a specific X value.
(without having seen your capx)
(Condition 1)
On key "arrow right"
(Condition 2)
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.