You can't copy and paste entire programs most of the time. However, you can copy and paste pieces of code with some of the buttons on the on-screen keyboard. They're in the bottom right corner. Press SEL then use the D-Pad to select text. You can then use the COPY and PASTE buttons to do just that. And remember, don't plagiarize!