The Keyboard is arranged so that the pitch goes left to right, low to high. The keys on keyboard instruments are arranged in a reoccurring pattern. The black keys are arranged in groups of two and three between the white keys.
This key pattern repeats on the keyboard so that the note names of the white keys keep repeating: CDEFGAB-CDEFGAB-CDEFGAB and so on.
Learn about reading music