This article is from the Piano General Topics FAQ, by Isako Hoshino firstname.lastname@example.org with numerous contributions by others.
The computer keyboard imposes a few limitations on the use of
this notation system. There is a sharp sign (# -- use the
"pound" sign) on the computer keyboard, but no flat sign.
The lower-case "B" (b) will have to suffice The accidental
is written one position to the right of the letter which
indicates the note, makes it unambiguous. For example, B#
for B-sharp-second-octave-below-middle-C, b1b for b-flat-