Hello Allar,
You might have the answer to your situation by now regarding "typing $s in Qbasic" but if not.
Using the following command should allow you to enter a dollar during input.
LINE INPUT "Enter Your $",D$
I hope this helps