The following example demonstrates one octave of the major scale ascending and descending in every key. This will take some time to learn but is essential for anyone wanting to play Jazz or Classical music. Learning scales may not seem as interesting as playing melodies, but a little effort at this stage will pay off very well later on, regardless of the style of music you are playing.
Memorize the notes of each scale and then try playing it with your eyes closed while visualizing how the notation for the scale would look. Once you have learned all the scales, you will be able to read music better, play melodies confidently in any key and be able to improvise in any key much more easily.