The phrase "from scratch" can't possibly have clear definition ("If you wish to make apple pie from scratch, you must first create the universe"). However, in this case I agree with you.
If you used a keyboard to make a keyboard, that is definitely not "from scratch".